PHP code example of it-yakutia / yii2-setting

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

    

it-yakutia / yii2-setting example snippets


'controllerMap' => [
    /* ... */
    'migrate' => [
            // 'class' => 'yii\console\controllers\MigrateController',
            'migrationPath' => [
                // '@console/migrations', // yii migrate/create app_init
                // '@yii/rbac/migrations',
                /* ... */
                '@vendor/it-yakutia/yii2-setting/src/migrations'
            ],
    ],
],

Url::toRoute('/setting/back/index');

<span><a href="<?= Setting::valueOf('social_link_vk'); 

<?= Setting::valueOf('social_link_vk', '<span><a href="[[value]]"><i class="fab fa-vk"></i></a></span>'); 

php composer.phar 

php yii migrate