Select Page

Creating a Symfony2 Custom Exception Handler

I wanted to be able to handle 404 , 500 errors etc. in my own way. The first step is to create your custom error404.html.twig template. The issue I was having was that I had a dynamic menu (amongst other things) that were then not available to the view. Using the...