CHttpException

I want to customize CHttpException.

For example, a 404 error.

I will create my own error404.php.

Then put it on ‘protected\views\system’ directory.

But it does not work.

If I copy error404.php provided by Yii into just the directory,

then it can work.

I really do not know the difference between the two files where?

How do I write my error404.php to let it work?

You probably have to save it as UTF-8 (unless you just use characters from plain old ascii).

/Tommy

(not a team member)

And encoding, though?

My page encoding is UTF-8.

I think that not the reason!

But, still thanks your reply!

http://www.yiiframework.com/doc/cookbook/47/

I finally understand the reason!

I create my own error404.php.

Then put it on ‘protected\views\system’ directory.

This does not have the question, it may the normal work!

It doesn’t work on my computer because of IE7.

It will work instead of Mozilla Firefox!

Thank you all the same!

So… is it solved or there is still an issue?