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
In the latest versions of the framework (I am working with 1.14) use:
Yii::app()->errorHandler->error['code']
because error is an array.