<!--{foreach name=childs from=$cat.cat_id item=child}-->
在开发过程中,我们常常会有一些比较特殊的需求。本人就在开发中遇到过,所以写此列子~
//foreach循环
//foreach循环
//section 循环
<!--{if $smarty.section.childs.last=="1"}-->
<!--{if $smarty.section.childs.last=="1"}-->