2016-12-15 36 views

回答

0

本機支持Jtwig。按照Jtwig documentation你可以做到以下幾點:

{% if ((app.request.session.attributeName) is defined) %} 
Hello 
{% endif %} 

要打印Hello如果會話屬性attributeName存在。

相關問題