zacksleo / yii-client
yii client manage module
Installs: 131
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 3
Forks: 0
Open Issues: 0
Type:yii2-extension
Requires
- yiisoft/yii2: ^2.0
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-10-15 15:28:38 UTC
README
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'
]
];
}
}