I dont understand what does @ do in this routing? exemple:
{% extends "@User/Default/index.html.twig" %}
i am trying to find the file that is extended but unable to do so.
I dont understand what does @ do in this routing? exemple:
{% extends "@User/Default/index.html.twig" %}
i am trying to find the file that is extended but unable to do so.
Thanks to the comment left by @Cerad I found it using: bin/console debug:twig
@User src\UserBundle/Resources/views\
Usually, when you refer to a template, you'll use the MyBundle:User:index.html.twig format. Twig also natively offers a feature called "namespaced paths", and support is built-in automatically for all of your bundles.
Take the following paths as an example:
{% extends "MyBundle:User:layout.html.twig" %}
With namespaced paths, the following works as well:
{% extends "@App/layout.html.twig" %}
Both paths are valid and functional by default in Symfony.