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

1.0.2 2019-01-15 02:43 UTC

This package is auto-updated.

Last update: 2024-11-15 15:40:54 UTC


README

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

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