It can be hard to get an idea on what files are read when getting a key from a certain config group and environment.
Solution
Either have a config/explain console command or debugger panel that gives you details about how configs are read and where the key requested was found.
./yii config/explain --env=prod --group=params --key=cache.enabled
config/params.php - found
config/params-local.php - not found
Key is loaded from config/params.php
Problem
It can be hard to get an idea on what files are read when getting a key from a certain config group and environment.
Solution
Either have a
config/explain
console command or debugger panel that gives you details about how configs are read and where the key requested was found.