我有这样的代码
{% for i in 1..25 %}
<li class="span4">
{% set screen = '@TfptPortfolioBundle/Resources/public/images/bekic/screen' ~ i ~ '.jpg' %}
<a href="#myModal" class="thumbnail" data-toggle="modal">{% image screen %}
<img src="{{ asset_url }}" alt="Młody Lider Innowacji" />
{% endimage %}</a>
</li>
{% endfor %}
但是 symfony 在车道上抛出一个错误“Unexpected token “name” of value “screen””
<a href="#myModal" class="thumbnail" data-toggle="modal">{% image screen %}
我如何连接字符串以将其用作资产 url?