You specified the wrong path, it should be:
{% for zone in content.blocks %} {% set path = 'CmsCmsBundle:StyleBlock:' ~ zone.styles %} {% include path %} {% endfor %}
as for path src/Cms/CmsBundle/Resources/views/StyleBlock/
The first parameter is your package, the second is the controller in this case StyleBlock , so your views are in your package in the Resources/views/StyleBlock , the last parameter is the name of the template, which is determined by the loop variable in this case, This should be only your name template without any absolute paths. All parameters are divided into :
source share