Saint - Cyr MAPOUKA
Saint - Cyr MAPOUKA

Reputation: 452

Symfony3 customizing error pages (404, 403...)

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

Answers (1)

Alvin Bunk
Alvin Bunk

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

Related Questions