且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

Symfony2-在树枝中将字符串转换为Int

更新时间:2023-11-19 16:07:52

这不是字符串,而是Twig_Markup

This is not string but Twig_Markup

{% if creditUser.__toString < c.idCompetenceCours.prix %}

但这不是一个好方法,您应该从object /变量不是来自呈现的模板

but this is not good approach you should get this value from object/variable not from rendered template