symfony: customize 404 error page

by prettyscripts on 2009-07-23 15:04:10 • Leave a comment »

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

No feedback yet

Leave a comment


Your email address will not be revealed on this site.

Your URL will be displayed.
PoorExcellent
note: all comments are moderated. do not spam and do not advertise. any irrelevant and non-sense comments will be deleted.
(Line breaks become <br />)
(Name, email & website)
(Allow users to contact you through a message form (your email will not be revealed.)