zacksleo / yii2-ad
yii2 ad manage module
Installs: 6 222
Dependents: 0
Suggesters: 0
Security: 0
Stars: 2
Watchers: 3
Forks: 1
Open Issues: 0
Type:yii2-extension
Requires
- nemmo/yii2-attachments: ^1.0.0-beta.3
- npm-asset/bootstrap-datetime-picker: ^2.4
Requires (Dev)
- phpunit/phpunit: ~4.0
This package is auto-updated.
Last update: 2024-11-15 15:53:14 UTC
README
yii2 ad module
Prerequisites
Install Yii2 attachments first
Migration
- Config Migration Path in Yii config file like this
'controllerMap' => [
'migrate' => [
'class' => 'yii\console\controllers\MigrateController',
'migrationPath' => [
...
'@zacksleo/yii2/ad/migrations',
],
],
],
- Or run migration by By migrationPath Parameter
./yii migrate --migrationPath=@zacksleo/yii2/ad/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'
]
];
}
}