Custom error500 / 400 page in symfony 1.4

Custom 400 page:

In config/settings.yml,
all:
  .actions:
    error_404_module:       error
    error_404_action:       404

Then when a page is not found, it will forward to "<your_domain>/error/404".

Custom 500 page:

1. Create "error" folder under "config"
2. create "error.html.php" under "config/error"

 

more info: http://symfony-check.org/

posted @ 2012-08-27 22:14  Lux.Y  阅读(395)  评论(0编辑  收藏  举报