Twig “is defined” and “is not null” not working as expected

前端 未结 0 1213
心在旅途
心在旅途 2021-01-21 20:27

I am new to twig and I would like to catch if some product data is not available. Currently I am trying the following:

{% if product.type is defined and product.t         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题