exoodev / yii2-settings
The Settings extension for the Yii2 framework
1.1.0
2019-09-17 10:12 UTC
Requires
- yiisoft/yii2: ~2.0.14
README
========================
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist exoodev/yii2-settings
or add
"exoodev/yii2-settings": "*"
to the require section of your composer.json.
Usage
Example configuration
'settings' => [
'class' => 'exoo\settings\components\Settings',
],
Example configuration for advanced template
'settings' => [
'class' => 'exoo\settings\components\Settings',
'cache' => [
'class' => 'yii\caching\FileCache',
'cachePath' => '@backend/runtime/cache',
]
],
Migration
yii migrate --migrationPath=@exoo/settings/migrations