symfony/symfony — Issue #3150: [Templating] - Unable to find template
Author: lazaridis-com
Created: 2012-01-18 15:59:10+00:00
State: open

Unable to find template "::global_right.html"

expected to work, but fails:

{% include 'global_right.html' %}

expected to work, but fails:

{% include '::global_right.html' %}

this works finally:

{% include '::global_right.html.twig' %}

-

I assume that this is because of how Symfony2 integrates twig, because twig documentations documents an expeted behaviour:

http://twig.sensiolabs.org/doc/templates.html#including-other-templates

Symfony2 should not enforce the .twig extension - or at least, the error messages should be more concise.