Hi,
I turned off YII_DEBUG. It successfully turns off error trace.
But when it comes to sql errors YII displays sql statement with column names and table name even when YII_DEBUG is off.
I asked same quesion under http://www.yiiframework.com/forum/index.php?/topic/6805-yii-debug-and-sql-errors/ .
But decided to post it in bugs forum too since, still I could not find a solution.
Please see attached screen_shot.jpg.
Meanwhile as the solution I modified CErrorHandler.render($view,$data) method.
protected function render($view,$data)
{
//ADDED THIS IF CONDITION TO STOP DISPLAYING ERROR MESSAGE IN PRODUCTION MODE
if (!YII_DEBUG && isset($data) && isset($data['message']))
{
$data['message'] = '';
}
if($view==='error' && $this->errorAction!==null)
Yii::app()->runController($this->errorAction);
else
{
// additional information to be passed to view
$data['version']=$this->getVersionInfo();
$data['time']=time();
$data['admin']=$this->adminInfo;
include($this->getViewFile($view,$data['code']));
}
}
Thanks,
Chamal.