DEBUG mode VS PRODUCTION mode

hello,

I’m trying to hide the nasty PHP errors from my users. I thought, if I turn the DEBUG off (remove it) it’ll just show a white page instead. But it’s still showing an error message … how can I disable that, or overwrite it so it fits into my design.

Thanks,

–iM

ini_set(‘display_errors’, ‘0’); I think.

thanks,

that’d be the easy way out :) but it’s not effective :( I think Yii takes over the error messages. I wouldn’t mind building it into my layout somehow …

–iM

Yes, you’re right.

Define YII_ENABLE_ERROR_HANDLER and YII_ENABLE_EXCEPTION_HANDLER as false in your entry script, or handle onError and onException events raised in CApplication.