PHP code example of myextensions / yii2-configs
1. Go to this page and download the library: Download myextensions/yii2-configs library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
myextensions / yii2-configs example snippets
'modules' => [
'configs'=>[
'class' => 'myextension\configs\Configs',
],
]
components' => [
'congfigs' => [
'class' => 'myextension\configs\components\Geter',
'cache'=> 120
],
]
$congig = Yii::$app->congfigs->get('slider_count');
php composer.phar