Answer the question
In order to leave comments, you need to log in
How to implement a config module?
I needed a configuration module for yii2, which was easily found at https://packagist.org/
But I wish the module was smarter. I mean working with the config in the style:
set: Yii::$app->settings->module->submodule->...->key = value;
get: value = Yii::$app->settings->module->submodule->...->key;
get all: value = Yii::$app->settings->module;
delete: Yii::$app->settings->module->submodule->...->key->delete();
delete2: unset(Yii::$app->settings->module->submodule->...->key);
something: Yii::$app->settings->module->submodule->...->key->something(...);
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question