2017 © Pedro Peláez
 

yii-extension systemparam

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

image

yiicod/systemparam

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

  • Tuesday, April 5, 2016
  • by lexxorlov
  • Repository
  • 0 Watchers
  • 0 Stars
  • 2 Installations
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

SystemParam

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

php yiic params sync

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

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

Either run, (*4)

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

or add, (*5)

"yiicod/systemparam": "*"

Link to source: https://bitbucket.org/yiicod/systemparam, (*6)

Config ( This is all config for extensions ):

aliases' => array(
    'vendor' => 'application.vendor',
    'editable' => 'vendor.vitalets.x-editable-yii',
),
'import' => array(
        'editable.*',
),
'components' => array(
    ...
    'editable' => [
    'class' => 'editable.EditableConfig',
        'form' => 'jqueryui',
        'mode' => 'inline',
        'defaults' => [
        'emptytext' => 'Click to edit',
        'ajaxOptions' => ['dataType' => 'json'], //usefull for json exchange with server
    ],
    ],
    'systemparam' => array(
        'class' => 'yiicod\systemparam\SystemParam',
        'modelMap' => array(
            'SystemParam' => array(
                'alias' => 'yiicod\systemparam\models\SystemParamModel',
                'class' => 'yiicod\systemparam\models\SystemParamModel',
                'fieldParamKey' => 'paramKey',
                'fieldParamValue' => 'paramValue',
                'fieldValidator' => 'validator',
                'fieldDescription' => 'description',
                'fieldIsDefault' => 'isDefault',
            )
        ),
        'autoUpdate' => YII_DEBUG,
        'debug' => YII_DEBUG,
        'controllers' => array(
            'controllerMap' => array(
                'admin' => array(
                    'systemParam' => 'yiicod\systemparam\controllers\admin\ParamController',
                )
            ),
            'admin' => array(
                'systemParam' => array(
                    'layout' => '/layouts/column1',
                    'filters' => array('accessControl'),
                    'accessRules' => array(
                        array('allow',
                            'actions' => array('update', 'admin'),
                            'roles' => array('admin'),
                        ),
                        array('deny', // deny all users
                            'users' => array('*'),
                        ),
                    ),
                )
            ),
        ),
        'components' => array(),
    ),
    ...
)

'preload' => array('systemparam')

Should work with diffenrent urlManager config, but didn't test with different url rules., (*7)

The Versions

05/04 2016

dev-master

9999999-dev

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

  Sources   Download

New BSD License

The Requires

 

05/04 2016

0.2.1

0.2.1.0

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

  Sources   Download

New BSD License

The Requires

 

29/02 2016

0.2.0

0.2.0.0

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

  Sources   Download

New BSD License

The Requires

 

13/07 2015

0.1.4.2

0.1.4.2

  Sources   Download

New BSD License

The Requires

 

12/06 2015

0.1.4.1

0.1.4.1

  Sources   Download

New BSD License

The Requires

 

13/04 2015

0.1.4.0

0.1.4.0

  Sources   Download

New BSD License

The Requires

 

08/01 2015

0.1.3.0

0.1.3.0

  Sources   Download

New BSD License

The Requires

 

26/11 2014

0.1.2.3

0.1.2.3

  Sources   Download

New BSD License

The Requires

 

05/08 2014

0.1.2.2

0.1.2.2

  Sources   Download

New BSD License

The Requires

 

20/07 2014

0.1.2.1

0.1.2.1

  Sources   Download

New BSD License

The Requires

 

21/06 2014

0.1.2

0.1.2.0

  Sources   Download

New BSD License

The Requires

 

25/05 2014
05/05 2014