PHP code example of octoweb / yii2-settings

1. Go to this page and download the library: Download octoweb/yii2-settings 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/ */

    

octoweb / yii2-settings example snippets


yii migrate/up --migrationPath=@vendor/octoweb/yii2-settings/migrations


    ......
   'modules' => [
        'settings' => [
            'class' => 'octoweb\settings\Module',
        ]
    ],
    ......



    ......
   'components' => [
        'setting'=>[
            'class'=>'octoweb\settings\components\SettingSite'
        ]
    ]
    ......


<?=Yii::$app->setting->get('site','favicon')

php composer.phar