{* this example will print out all the values of the $custid array *}
{section name=customer loop=$custid}
id: {$custid[customer]}<br>
{/section}OUTPUT:id: 1000<br>
id: 1001<br>
id: 1002<br>

解决方案 »

  1.   

    楼上的,我的意思是<{ if $PulseModel == "1" }>这个if不起作用,两个section都进行了循环。
      

  2.   

    终于找的原因了
    <{ section name="sale_time" loop=$pkgSaleTimeArray  start=11 step=12 }>
                    <option value="<{ $pkgSaleTimeArray[sale_time] }>"><{ $pkgSaleTimeArray[sale_time]/12 }>年1</option>
                    <{ /section >}
    最后的section结束用的是“>}”,应该是“}>”