Answer the question
In order to leave comments, you need to log in
How to load configuration from database in Yii2?
An array with a global config is formed in the web.php file. It also has an event 'on beforeRequest', according to which the code is executed
Yii::$container->set(['key' => \app\models\Model::getValue()]);
Answer the question
In order to leave comments, you need to log in
Check table existence by query builder in on beforeRequest
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question