The ::base.html.twig
syntax is not relative. That means it'll work everywhere.
The full syntax for template paths is BundleName:DirName:FileName
. So AcmeDemoBundle:Page:home.html.twig
refers to @AcmeDemoBundle/Resources/views/Page/home.html.twig
.
If the DirName
is not used, e.g. AcmeDemoBundle::layout.html.twig
, it'll be resolved to @AcmeDemoBundle/Resources/views/layout.html.twig
.
If the BundleName
is not used, it is assumed the template lives in app/Resources/views
.
So ::base.html.twig
just refers to the absolute path app/Resources/views/base.html.twig
(this is not absolute, since I don't know the absolute path to the app
dir in your case, but it'll be absolute when Symfony does it).
In short: You can just use ::base.html.twig