-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
[Templating] TemplateReference::getPath hardcodes "views" directory #25019
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
@yceruto would you mind checking this one please? |
It looks like you're rendering a template that does not exists in Twig paths (run IMHO, nothing to do here ;) because the templating layer is absolete and it keep only BC with old structure. |
I've created two Symfony 3.4 projects. In both of them I required the In this project: In this project:
This has a default controller that calls But if you say it's kept only for BC and this is not to be expected, it's fine with me, I can close this issue. While at it, I tried adding the
|
Try renaming the template to |
It works. Closing this issue as, per your mention, the templating component is obsolete. As far as I understand, the twig bridge doesn't work with the templating component, it has a separate implementation... |
While trying to add Symfony 4 support to LiipThemeBundle I came across this: the bundle calls
Symfony\Bundle\FrameworkBundle\Templating\Template\TemplateNameParser::parse()
with a simple name (not containing a bundle):index.html
. This creates aTemplateReference
with no bundle, butTemplateReference::getPath()
returnsviews/index.html.twig
for the path. As with the twig engine the templates is searched intemplates/
directory, this looks like a bug.The text was updated successfully, but these errors were encountered: