Answer the question
In order to leave comments, you need to log in
How to overwrite the value of a variable in config/params.php from a program?
Hello,
How can I overwrite the value of a variable in config/params.php from a program?
Why Yii::$app->params[ 'test' ] = 'new value'; does not work?
Answer the question
In order to leave comments, you need to log in
Why Yii::$app->params[ 'test' ] = 'new value'; does not work?
Yii::$app->params[ 'test' ] = 'новое значение';
echo Yii::$app->params[ 'test' ]; //выведет 'новое значение'
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question