Problem is that i do all according this topic http://www.yiiframework.com/doc/guide/1.1/en/topics.error, but when in my controller i raise exception( throw new Exception(“error”); ), yii don’t route to my custom error controller and use system default. How to handle such exceptions?
Problem is that i do all according this topic http://www.yiiframework.com/doc/guide/1.1/en/topics.error , but when in
Share
You have to use one of Yii’s own Exception classes:
CException,CDbExceptionorCHttpException. From the link you gave: http://www.yiiframework.com/doc/guide/1.1/en/topics.error#raising-exceptions