YII_DEBUG mode always on?

Hello,

I commented out defined(‘YII_DEBUG’) from my app’s index.php but defined('YII_DEBUG') still returns TRUE throughout my code.

I believe framework defines it as true by itself and backdrafts it to app, regardless of setting in app’s index.php.

True/False?

Gleb

Sorry, $self->got the answer:

The correct way to use it would be:


if(YII_DEBUG) { ... }

and not:


if(defined(YII_DEBUG)) { ... }

Commenting it out from index.php will still keep it defined but value of it will be false.

Gleb