Missing template after relocation base #3796
Unanswered
abelardolg
asked this question in
Q&A
Replies: 1 comment
-
I added this highlighted line inside twig.yaml file: and then I re-wrote the extends clause: but it didn't work. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi there,
I stored general templates under this structure of directories in my Symfony project:
(shared is under src directory)
In other hand, I created a Twig template under this directory:
When I referenced to "base.html.twig" template, it says:
Missing template
My twig.yaml contains:
Inside one of my controllers (it is ok):
According to this doc, I was doing it well, but there something fails.
What's wrong?
I didn't write any dir before this path:
{% extends 'base.html.twig' %}
since the twig.default_path location refers to its directory.
Best regards.
Beta Was this translation helpful? Give feedback.
All reactions