{foreach from=$gc_all item=item}

解决方案 »

  1.   

    {foreach from=$gc_all item=item name=tnum}
    {$smarty.foreach.tnum.iteration }
      

  2.   


    {foreach from=$gc_all item=item name='section'}
       {$smarty.foreach.section.iteration } 
    {/foreach}或者{foreach from=$gc_all item=item name='section'}
       {$smarty.foreach.section.index } 
    {/foreach}