2017 © Pedro Peláez
 

yii2-extension yii2-params

Yii2 Advanced params

image

zarv1k/yii2-params

Yii2 Advanced params

  • Thursday, September 1, 2016
  • by zarv1k
  • Repository
  • 1 Watchers
  • 2 Stars
  • 42 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 17 Versions
  • 0 % Grown

The README.md

Advanced application params for Yii 2

This extension provides the advanced params for Yii 2 applications. (Warning: this extension is under development, unstable and not for production use), (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist zarv1k/yii2-params "*"

or add, (*4)

"zarv1k/yii2-params": "*"

to the require section of your composer.json file., (*5)

Run migrations to create params table in DB:, (*6)

yii migrate --migrationPath=@zarv1k/params/migrations

Once the extension is installed, simply modify your application configuration as follows:, (*7)

return [
    // ...
    'params' => '@zarv1k/params/config/default.php',
    // ...
];

Or use your custom params component configuration as follows:, (*8)

return [
    // ...
    'params' => [
        'class' => 'zarv1k\params\components\Params',
        'filePath' => '@app/config/params.php'
    ],
    // ...
];

To manage application params on your web site you can turn on the params module:, (*9)

return [
    // ...
    'modules' => [
        // ...
        'params' => [
            'class' => 'zarv1k\params\modules\params\Module'
        ],
        // ...
    ],
];

Then you can then access params module through the following URL:, (*10)

http://localhost/path/to/index.php?r=params

or if you have enabled pretty URLs, you may use the following URL:, (*11)

http://localhost/path/to/index.php/params

Usage

\Yii::$app->params['param_scope.param_code']

The Versions

01/09 2016

dev-master

9999999-dev

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

01/09 2016

0.1.1

0.1.1.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

29/05 2016

0.1.0

0.1.0.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

16/05 2015

0.0.6.2

0.0.6.2

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

11/01 2015

0.0.6.1

0.0.6.1

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

11/01 2015

0.0.5.3

0.0.5.3

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

08/01 2015

0.0.6

0.0.6.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

08/01 2015

0.0.5.2

0.0.5.2

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

08/01 2015

0.0.5.1

0.0.5.1

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

08/01 2015

0.0.5

0.0.5.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

04/01 2015

0.0.4.1

0.0.4.1

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

04/01 2015

0.0.4

0.0.4.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

04/01 2015

0.0.3

0.0.3.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

03/01 2015

0.0.2

0.0.2.0

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

03/01 2015

0.0.1.3

0.0.1.3

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

03/01 2015

0.0.1.2

0.0.1.2

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params

03/01 2015

0.0.1.1

0.0.1.1

Yii2 Advanced params

  Sources   Download

proprietary

The Requires

 

by Dmitry Zarva

yii2 params