Compile Error: Cannot use isset() on the result of an expression

前端 未结 2 883
礼貌的吻别
礼貌的吻别 2020-12-11 02:33

I\'m getting this error in a app I am migrating from SF2.0.x to SF2.7:

[1] Symfony\\Component\\Debug\\Exception\\FatalErrorException: Compile Error: Cannot u         


        
2条回答
  •  -上瘾入骨i
    2020-12-11 03:16

    Why are you doing so much useless code?

    Why don't just:

    {% if form_action|empty == true %} {% set form_action = '' %} {% endif %}
    

提交回复
热议问题