Skip to content

Conversation

@lsv
Copy link
Contributor

@lsv lsv commented Dec 31, 2017

Possible fix for templates in symfony 4

Fixes #168

@Nyholm Nyholm self-requested a review December 31, 2017 11:58
@Nyholm
Copy link
Member

Nyholm commented Dec 31, 2017

Thank you. This is related to https://github.com/php-translation/symfony-bundle/pull/142/files

Do one really need the extra config in twig?

@lsv
Copy link
Contributor Author

lsv commented Dec 31, 2017

The problem is in the {% extends %}
And by changing it to {% extends "@Translation:WebUI:base.html.twig" %} you get this error

Malformed namespaced template name "@Translation:WebUI:base.html.twig" (expecting "@namespace/template_name")

By changing it to {% extends "@Translation/WebUI/base.html.twig" %} it actually seems to work.

I will update the PR

Copy link
Member

@Nyholm Nyholm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Symfony 4 - admin/_trans - Unable to find template "TranslationBundle:WebUI:base.html.twig"

2 participants