yii2-config
Yii2 module for database based configurations editing, (*1)
Installation
The preferred way to install this extension is through composer., (*2)
Either run, (*3)
php composer.phar require --prefer-dist wolfguard/yii2-config "*"
or add, (*4)
"wolfguard/yii2-config": "*"
to the require section of your composer.json
file., (*5)
After running, (*6)
php composer.phar update
run, (*7)
yii migrate --migrationPath=@vendor/wolfguard/yii2-config/migrations
After that change your main configuration file config/web.php
, (*8)
<?php return [
...
'modules' => [
...
'config' => [
'class' => 'wolfguard\config\Module',
],
...
],
...
];
Usage
Once the extension is installed, simply use it in your code by :, (*9)
<?= \wolfguard\config\widgets\Config::widget(['code' => 'email-from']); ?>