ユーザ用ツール

サイト用ツール

Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/2/206cbdfc3530d29dafc3e13f18a2d077.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/2/206cbdfc3530d29dafc3e13f18a2d077.metadata failed

よく使うsmartyその2
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/2/206cbdfc3530d29dafc3e13f18a2d077.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/e/e1d59635bbc11986839ea8127ab0460e.i failed
Unable to save cache file. Hint: disk full; file permissions; safe_mode setting.
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/e/e1d59635bbc11986839ea8127ab0460e.metadata failed
Writing /var/www/vhosts/w629.ws.domainking.cloud/enjoy-lei.com/lei_wiki/data/cache/2/206cbdfc3530d29dafc3e13f18a2d077.xhtml failed

よく使うsmartyその2

よく使うsmarty

文字制限

{$value.body|truncate:19:'...':true}

数字の定義

{numformat num=$value.op_tax_price}円 

少数点の付け(小数点何位まで)

{$number|string_format:"%.2f"}

金額表示(1,200円)

{$number|number_format}

カウント数。合計数

{$mso_prefecture|@count}

smarty計算

合計を取得して掛け算した

{math equation="x * y" x=$value|@count y=2}
よく使うsmartyその2.txt · 最終更新: 2014/12/01 11:12 by luis_lee