dev-master
9999999-devGet and set configs
MIT
The Requires
- yiisoft/yii2 *
- php >=5.4.0
by Roman Bureiko
extension yii2
1.1.2
1.1.2.0Get and set configs
MIT
The Requires
- yiisoft/yii2 *
- php >=5.4.0
by Roman Bureiko
extension yii2
Wallogit.com
2017 © Pedro Peláez
Get and set configs
Get and set configs, (*1)
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)
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',
],
]
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');
Get and set configs
MIT
extension yii2
Get and set configs
MIT
extension yii2