I would like to include a template in my view but it doesn't work, I have this error :
Unable to find template "::StyleBlock/light-pattern.html.twig" in ::base.html.twig at line 46.
My code :
{% for zone in content.blocks %}
{% set path = '::StyleBlock/' ~ zone.styles %}
{% include path %}
{% endfor %}
In the details i have this message :
InvalidArgumentException: The file "views/StyleBlock/light-pattern.html.twig" does not exist (in: /var/www/gathena/app/Resources).
But the path is correct, i don't understand.
I use Symfony 2.3 and I have the good permission on my directory
/var/www/gathena/app/Resources/views/StyleBlock/light-pattern.html.twig
?app/config.yml
? ..or as the error says added the bundle to yourAppKernel.php
?app/Resources/view
dir, or insrc/Cms/CmsBundle/Resources/view
?