I want to display 404 error page for that i have made error404.php file in my protected/view/system folder.
By default i have Sitecontroller and it contained error acti
Whenever errors occur, the action error in siteController is called. you can customize the error route in that action, you can do something like this:
if(404==Yii::app()->errorHandler->error->code){ //go to custome error page else //code default error.php