custom 404 page in Yii

just put your 404 file in this path.

views/system/error404.php