2015-11-05から1日間の記事一覧
Smarty 3 Smarty 3 なら for が実装されている. {for} | Smarty {for $i=1 to 10} <div>{$i}</div> {/for} Smarty 2 Smarty 2 だと for が実装されていないため section を使う必要がある. {section},{sectionelse} | Smarty {section name=i start=1 loop=11} <div>{$smar</div>…