alikdex/yii2-pages

Pages module. Yii2

Installs: 76

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:yii2-extension

1.0.0 2019-06-19 00:18 UTC

This package is auto-updated.

Last update: 2024-10-16 19:40:03 UTC


README

Yii2 pages module

App configure module

'modules' => [
    'pages' => [
        'class' => Adx\PagesModule\Module::class,
        //'viewPath' => '@app/views/pages',
        //'controllerNamespace' => 'Adx\PagesModule\Admin',
    ],
],

Migrations

config:

'controllerMap' => [
    'migrate' => [
        'class' => yii\console\controllers\MigrateController::class,
        'migrationNamespaces' => [],
        'migrationPath' => [
            '@vendor/alikdex/yii2-pages/src/Migration',
        ],
    ],
],

or composer:

"scripts": {
    "post-update-cmd": [
        "yes | php yii migrate --migrationPath=@vendor/alikdex/yii2-pages/src/Migration"
    ],
    "post-install-cmd": [
        "yes | php yii migrate --migrationPath=@vendor/alikdex/yii2-pages/src/Migration"
    ]
}