Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
これの正しい構文を取得できないようです: 除算の計算。
{assign var="span" value="`12/$rows|@count`"}
ドキュメント - http://www.smarty.net/docs/en/language.math.tpl
これを試して :
{assign var="count" value=$rows|@count} {math assign="span" equation='x/y' x=12 y=$count}
参照: http://www.smarty.net/forums/viewtopic.php?p=66730