Closed robertfausk closed 7 years ago
The error.html.twig
template is a fallback template (i.e. when no template for the specific error code was found). Thus, error404.html.twig
will be chosen if it exists, but the controller will fallback to error.html.twig
else (see the bulletin points above the paragraph that you quoted).
Yep. You're right:)
see http://symfony.com/doc/current/controller/error_pages.html#overriding-the-default-error-templates
"app/Resources/TwigBundle/views/Exception/error.html.twig" is not valid cause it's for other error codes.