It's possible to add setting 'env.code' using for enabling/disabling debug depend on environment? I searched through the code but never this param not using. Thanks.
Will analyze code for a good solution
+1. There is no easy way to enable/disable YII_DEBUG ...
There's no need to specify YII_DEBUG anymore. Application is in debug mode by default. To disable debug mode you have three options:
Check the common/check_prod_mode.php file for details.