Reputation: 452
I don't know what is wrong but I couldn't override the error pages as describe in the documentation by simply create the related file at app/Resources/TwigBundle/views/Exception/error.404.html.twig
or app/Resources/TwigBundle/views/Exception/error.403.html.twig
and so on...
Notice that I also clean the cache as well before check it: bin/console cache:clear --env=prod
. I'm using Symfony 3.0.6
Upvotes: 0
Views: 328
Reputation: 7764
the twig file name should be:
error404.html.twig
not:
error.404.html.twig
Let me know if you still have problems. This should work, because I've used it.
Upvotes: 3