Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Cookbook][Controller] fix route prefix in PHP code example #4353

Merged
merged 1 commit into from
Oct 31, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions cookbook/controller/error_pages.rst
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ To use this feature, you need to have a definition in your
$collection->addCollection(
$loader->import('@TwigBundle/Resources/config/routing/errors.xml')
);
$collection->addPrefix("/error");
$collection->addPrefix("/_error");

return $collection;

Expand Down Expand Up @@ -326,7 +326,7 @@ another page or rendering specialized error pages.

If your listener calls ``setResponse()`` on the
:class:`Symfony\\Component\\HttpKernel\\Event\\GetResponseForExceptionEvent`,
event propagation will be stopped and the response will be sent to
event propagation will be stopped and the response will be sent to
the client.

This approach allows you to create centralized and layered error
Expand All @@ -338,7 +338,7 @@ several) listeners deal with them.

To see an example, have a look at the `ExceptionListener`_ in the
Security Component.

It handles various security-related exceptions that are thrown in
your application (like :class:`Symfony\\Component\\Security\\Core\\Exception\\AccessDeniedException`)
and takes measures like redirecting the user to the login page,
Expand Down