pavlinter/yii2-adm-params

Yii2: Adm-Params Модуль для Adm CMS

Installs: 206

Dependents: 3

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

Type:yii2-extension

v1.1.4 2017-08-11 18:28 UTC

This package is not auto-updated.

Last update: 2024-12-21 18:24:47 UTC


README

Установка

Удобнее всего установить это расширение через composer.

   "pavlinter/yii2-adm-params": "*",

Настройка

'on beforeRequest' => function ($event) {
    $params = \pavlinter\admparams\models\Params::bootstrap();
    Yii::$app->params = \yii\helpers\ArrayHelper::merge(Yii::$app->params, $params);
},
'modules' => [
    ...
    'adm' => [
        ...
        'modules' => [
            'admparams'
        ],
        ...
    ],
    'admparams' => [
        'class' => 'pavlinter\admparams\Module',
    ],
    ...
],

Запустить миграцию

yii migrate --migrationPath=@vendor/pavlinter/yii2-adm-params/admparams/migrations