score:3

Accepted answer

You have a typo in your {% include %} statements. You are supposed to use : instead of . to separate blocks in template name.

Try this:

{% if score_keeper=='sk' %}
{% include 'ScoreBoardViewerBundle:Viewer:scoreboard_keeper.html.twig' with {'score_keeper' : score_keeper} %}
{% else %}
    {% include 'ScoreBoardViewerBundle:Viewer:scoreboard.html.twig' %}
{% endif %}

Related Query

More Query from same tag