2017 © Pedro Peláez
 

yii2-extension yii2-systemparams

Config params with editable in the admin panel for the Yii framework

image

yiicod/yii2-systemparams

Config params with editable in the admin panel for the Yii framework

  • Sunday, February 18, 2018
  • by lexxorlov
  • Repository
  • 1 Watchers
  • 3 Stars
  • 484 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 4 Versions
  • 40 % Grown

The README.md

Yii SystemParam extension

Latest Stable Version Total Downloads Scrutinizer Code QualityCode Climate, (*1)

With this extension you easy config your Yii::$app->params from admin panel. You need install extension with composer and run command:, (*2)

php yii params sync

This is command for synchronize your php config with db., (*3)

The preferred way to install this extension is through composer., (*4)

Either run, (*5)

php composer.phar require --prefer-dist yiicod/systemparam "*"

or add, (*6)

"yiicod/systemparam": "*"

to your composer.json, (*7)

Config:

'components' => array(
    ...
    'systemparams => [
        'commandMap' => [
            'params' => [
                'class' => SystemParamCommand::class,
                'paramsAlias' => '@app/../common/config/params-system.php',
            ],
        ],
        'modelMap' => [
            'systemParam' => [
                'class' => SystemParamModel::class,
            ],
            'systemParamSearch' => [
                'class' => SystemParamSearch::class,
            ],
        ],
        'cacheDuration' => 28800,
        'components' => [],
    ]
    ...
)
'bootstrap' => array('systemparams')

Usage

Use (or extend) yiicod\systemparams\controllers, or add to your controller crud actions:, (*8)

public function actions()
{
    return [
        'admin' => [
            'class' => yiicod\systemparam\actions\admin\Admin::class,
        ],
        'update' => [
            'class' => yiicod\systemparam\actions\admin\Update::class,
        ],
    ];
}

Migration usage

Migration command or use manual(http://www.yiiframework.com/doc-2.0/guide-db-migrations.html) for configuration:, (*9)

   yii migrate --migrationPath=@vendor/yiicod/yii2-systemparam/migrations

The Versions

18/02 2018

dev-master

9999999-dev

Config params with editable in the admin panel for the Yii framework

  Sources   Download

MIT

The Requires

 

The Development Requires

18/02 2018

1.0.2

1.0.2.0

Config params with editable in the admin panel for the Yii framework

  Sources   Download

MIT

The Requires

 

The Development Requires

18/02 2018

1.0.1

1.0.1.0

Config params with editable in the admin panel for the Yii framework

  Sources   Download

MIT

The Requires

 

The Development Requires

25/08 2017

1.0

1.0.0.0

Config params with editable in the admin panel for the Yii framework

  Sources   Download

New BSD License

The Requires