Skip to content

twisted1919/yii2-options

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yii2-option

Install via composer:

composer require twisted1919/yii2-options

Run the migration:

./yii migrate --migrationPath=@vendor/twisted1919/yii2-options/migrations

Add the component in your configuration file:

'components' => [  
    [...]  
    'options' => [  
        'class' => '\twisted1919\options\Options'  
    ],  
    [...]  
]

Api:

Please note that options() is added by twisted1919/yii2-shortcut-functions automatically.

SET
options()->set($key, $value);
GET
options()->get($key, $defaultValue = null);
REMOVE
options()->remove($key);

About

It helps to manage your app options/settings

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages