symfony: customize 404 error page

by prettyscripts on 2009-07-23 15:04:10

symfony

how do you replace the default brown page not found error? there are 2 ways to do it.

i chose to override default template because it seems more convenient.

from command line:

> cd /to/your/apps/[application]/modules
> mkdir default
> mkdir default/templates
> cd default/templates
> vi error404Success.php

yes, you want to create the directory manually. do not use init-module task because you don’t want to overwrite default actions.

the location of the default module:

/path/to/symfony/lib/controller/default

Tags: 404, error, symfony

2 comments

Comment by Markus @ 2011-02-16 21:37:36
*****
Hi.

Thanks.
I was looking everywhere for this piece of information (new to symfony).
How about extending the post to "How to customize the default module."?

Cheers
Comment by diaxpro @ 2011-09-02 20:12:59
*****
Thx, is what I was looking and a very simple way.

Leave a comment


Your email address will not be revealed on this site.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. only comments relevant to the post will be published.
(Line breaks become <br />)
(For my next comment on this site)
(Allow users to contact me through a message form -- Your email will not be revealed!)