The PageBundle
can catch errors to render a different error pages. For
instance, the page not found exception can be administrated and rendered likes
any other pages.
The following configuration will create two 2 pages (by running the
sonata:page:update-core-routes
).
catch_exceptions:
not_found: [404]
fatal: [500]
The pages name will be _page_internal_error_not_found
and
_page_internal_error_fatal
.
There are editable by using the front navigation menu : “See all errors” menu item.
Found a typo? Something is wrong in this documentation? Just fork and edit it!