How Override Yii Framework's config/console.php with Local Console Configuration File?
Yii framework's config/main.php file can be overwritten by a local.php configuration file via an array_merge. This allows me to set different开发者_如何转开发 database connections and other parameters specific to production, QA, and development environments.
Yii also allows me to run commands in the command line. It uses a config/console.php file. Is there a way I can set up a local console config file in the same way that will override the main console config depending on the environment?
Hmm, that's an interesting way of doing overriding the config. But it looks like you could just modify console.php in the same way you did the main.php (add local_config function to console.php and point it to console-local.php).
精彩评论