-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
View location bug with Symfony 2.8.3 #17969
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
I'm not sure if that was ever supported as the default structure would've been loading templates from your view directory. |
It have been using this long before 2.8 :) |
That doesn't mean it's a supported notation though, I wasn't aware that this was possible in the first place. Supported notations are here: http://symfony.com/doc/current/book/templating.html#template-naming-and-locations If this is intended to work, it should be fixed of course. |
Unless support for this has been removed and I missed that along the way. |
You could add your own twig namespace: http://symfony.com/doc/current/cookbook/templating/namespaced_paths.html |
And why would I want to do that when it worked perfectly fine before? This sounds more like a workaround for a bug then anything else... |
I'm not saying you'd want to do that. I'm saying you could do that to get it to work in the newer version. If it's a bug, it can be fixed. If it was something that was possible but not intended to be, your solution will keep your system working. However, I recommend to stick to the documentation or best-practices regarding template locations. |
I think this is the same as #17777 |
In that case, @brechtdewinne can you try if this fix works for you? #17894 |
When upgrading Symfony from 2.8.2 to 2.8.3 I have noticed that the following no longer works:
Directory structure:
/src/Base/SubDir/Resources/views/view.html.twig
Symfony throws an exception saying that the view cannot be found inside
app/Resources/views
.The text was updated successfully, but these errors were encountered: