A
A
Alexander2019-04-05 11:43:14
symfony
Alexander, 2019-04-05 11:43:14

Why might overriding the error template not work on Symfony?

Hello dear community!
I want to override the Symfony 3.4 error template
. I do it according to the manual - I upload files from the vendor to the appropriate folder
app/Resources/views/TwigBundle/views/Exception/
and even to the folder of my bundle
src/AppBundle/Resources/views/TwigBundle/views/Exception/error .html.twig
templates are not picked up, symphony stubbornly takes them from the vendor's folder,
naturally cleared the cache and also went to 127.0.0.1:8000/_error/404
.

Answer the question

In order to leave comments, you need to log in

1 answer(s)
A
Alexander, 2019-04-05
@alexmixaylov

Dunce
Still managed to make a mistake in the structure
put the folder in src/AppBundle/Resources/views
and it was necessary in src/AppBundle/Resources/
all the issue is closed, everything works

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question