Symfony: custom error page

For me, it seems that nothing I read at the symfony documentation ever works. I needed to create custom error pages, so I created the folder app/Resources/TwigBundle/views/Exception and within this folder I created error.html.twig . Of course this didn’t work. Why? I was in the dev environment which seems to need a different file: exception_full.html.twig and thaaat worked.

Stupid Symfony.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.