https://github.com/zacksleo/yii-client
client version manage module
https://github.com/zacksleo/yii-client
Last synced: about 1 year ago
JSON representation
client version manage module
- Host: GitHub
- URL: https://github.com/zacksleo/yii-client
- Owner: zacksleo
- Created: 2019-01-07T07:28:20.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2019-01-15T02:44:09.000Z (over 7 years ago)
- Last Synced: 2025-02-07T13:47:02.972Z (over 1 year ago)
- Language: PHP
- Size: 25.4 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
[](https://packagist.org/packages/zacksleo/yii-client)
[](https://packagist.org/packages/zacksleo/yii-client)
[](https://packagist.org/packages/zacksleo/yii-client)
[](https://travis-ci.org/zacksleo/yii-client)
[](https://styleci.io/repos/82318907)
[](https://scrutinizer-ci.com/g/zacksleo/yii-client/?branch=master)
[](https://scrutinizer-ci.com/g/zacksleo/yii-client/?branch=master)
# yii client module
## Migration
+ Config Migration Path in Yii config file like this
```
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
...
'@zacksleo/yii2/client/migrations',
],
],
],
```
+ Or run migration by By migrationPath Parameter
```
./yii migrate --migrationPath=@zacksleo/yii2/client/migrations
```
## Config Module in components part
```
'rom-release' => [
'class' => 'zacksleo\yii2\ad\Module',
]
```
## Use Actions
```
class AdController extends Controller
{
public function actions()
{
return [
'index' => [
'class' => 'zacksleo\yii2\ad\actions\IndexAction'
]
];
}
}
```