richie
(Richie Liu9)
1
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?
tri
(tri - Tommy Riboe)
2
You probably have to save it as UTF-8 (unless you just use characters from plain old ascii).
/Tommy
(not a team member)
richie
(Richie Liu9)
3
And encoding, though?
My page encoding is UTF-8.
I think that not the reason!
But, still thanks your reply!
mbi
(mbi)
4
richie
(Richie Liu9)
5
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!
samdark
(Alexander Makarov)
6
So… is it solved or there is still an issue?