2017 © Pedro Peláez
 

yii2-extension yii2-configs

Get and set configs

image

myextensions/yii2-configs

Get and set configs

  • Wednesday, June 1, 2016
  • by romanbur
  • Repository
  • 1 Watchers
  • 0 Stars
  • 18 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Get and set configs

Get and set configs, (*1)

Installation

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

Either run, (*3)

php composer.phar require --prefer-dist myextensions/yii2-configs "*"

or add, (*4)

"myextensions/yii2-configs": "*"

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

Usage

Once the extension is installed, simply use it in your code by : 1. In cinfig/main.php for using in views of extension. Link will be has following form: ...cinfigs/config, (*6)

'modules' => [
    'configs'=>[
            'class' => 'myextension\configs\Configs',
        ],
]
  1. In components:
    components' => [
            'congfigs' => [
                'class' => 'myextension\configs\components\Geter',
                'cache'=>   120
            ],
    ]
```Parameters: cache - Cash time in second (default - 0. If cache = 0, cache - disabled)
The current component need for get access to configurate parameters in every parts of Application with following code:

```php
$congig = Yii::$app->congfigs->get('slider_count');

The Versions

01/06 2016

dev-master

9999999-dev

Get and set configs

  Sources   Download

MIT

The Requires

 

by Roman Bureiko

extension yii2

01/06 2016

1.1.2

1.1.2.0

Get and set configs

  Sources   Download

MIT

The Requires

 

by Roman Bureiko

extension yii2