I try to load a simple base.html.twig template file that was moved from symfony's default location app/Resources/views/ to the custom location theme/.
The template file contains:
<!DOCTYPE html>
<html>
<head>
...
</head>
<body>
{% block body %}{% endblock %}
</body>
</html>
Extending the above template file by the controller Acme\Core\CoreBundle\Controller by using the controller-specific template
{% extends '::base.html.twig' %}
{% block body %}
Hello world!
{% endblock %}
leads to an error saying Unable to find template "::base.html.twig" in "AcmeCoreCoreBundle:Default:index.html.twig"..
How is it possible to tell symfony where to find the template files in global space?
Thanks in advance.
\Twig_Loader_Filesystem::addPath($path, $namespace = '__main__')( see Source ) but not sure where you would call it from. Also had a look at the TwigBundle configuration, but doesn't look like there's an option for it there. If someone where to expand further on this, it might help.