How can I be sure that the version of Yii I am using is not a development but a production?
How can I be sure that the version of Yii I am using is not a development but a production?
Check what is the value of YII_DEBUG.
Here is what index contains:
// comment out the following two lines when deployed to production
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');
So all I need is to do what the commented line says to make it a production version?
Yes.
Or just change to
defined('YII_DEBUG') or define('YII_DEBUG', false);
defined('YII_ENV') or define('YII_ENV', 'prod');