How to print twig variables inside html code

前端 未结 2 1369
伪装坚强ぢ
伪装坚强ぢ 2021-01-07 08:27

I created a variable, like this :

{% set checkboxHTML = \'\' %}
         


        
2条回答
  •  难免孤独
    2021-01-07 09:16

    You have to use set, like this:

    {% set checkboxHTML = '' %}
    

    Documentation: https://twig.symfony.com/doc/2.x/tags/set.html

提交回复
热议问题