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

3.0.1 2019-03-15 02:38 UTC

README

Latest Stable Version Total Downloads License Build Status StyleCI Scrutinizer Code Quality Code Coverage

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'
            ]
        ];
    }
}