{section name=foo start=10 loop=20 step=2}
{$smarty.section.foo.index}
{/section}
{section name=bar loop=21 max=6 step=-2}
{$smarty.section.bar.index}
{/section}
上面模板的输出效果:
10 12 14 16 18
20 18 16 14 12 10
===== 参考 =====
* http://topic.csdn.net/u/20090609/13/18388b54-afa6-4e7a-941d-a1764e2c2f1c.html