Skip to content

Commit

Permalink
Update error_pages.rst
Browse files Browse the repository at this point in the history
  • Loading branch information
mpdude authored and weaverryan committed Mar 9, 2014
1 parent 2be0de9 commit c66649d
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -30,21 +30,21 @@ control you need:
information, see :ref:`kernel-kernel.exception`.

The default ``ExceptionController`` will either display an
*exception* or *error* page, depending on the setting of the ``kernel
.debug`` flag. While *exception* pages give you a lot of helpful
*exception* or *error* page, depending on the setting of the ``kernel.debug``
flag. While *exception* pages give you a lot of helpful
information during development, *error* pages are meant to be
shown to the end-user.

.. sidebar:: Testing error pages during development
.. sidebar:: Testing Error Pages during Development

Setting ``kernel.debug`` to ``false`` in order to see your
error pages during development is impractical as it also stops
You should not set ``kernel.debug`` to ``false`` in order to see your
error pages during development. This will also stop
Symfony2 from recompiling your twig templates, among other things.

The third-party `webfactory/exceptions-bundle`_ provides a special
test controller that allows you to display your custom error
pages for arbitrary HTTP status codes even with ``kernel
.debug`` set to ``true``.
pages for arbitrary HTTP status codes even with
``kernel.debug`` set to ``true``.

All of the error templates live inside the TwigBundle. To override the
templates, simply rely on the standard method for overriding templates that
Expand Down

0 comments on commit c66649d

Please # to comment.