阅读背景:

Twig php中的三元运算符(if-then-else的简写形式)

来源:互联网 

Is it possible to use ternary operators in twig template? Now, for adding some class to DOM element depend on some condition I do like this:Is it possible to use ternary operators in twig




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: