Symfony: Customize 404 error page

How do you replace the default brown page not found error? There are 2 ways to do it. I chose to override default template because it seems more convenient.

PHP: Display errors

For security reasons, display_errors should be turned off in php.ini. This will not display the error on the browser. However it’s inconvenient during development not being able to see the …