日期:2014-05-17  浏览次数:20691 次

smarty tpl 循环
HTML code
 
            {section name=h1 loop=$result}
                {$result[h1].cat_name};
            {/section}




.tpl 文件中怎么循环输出php传过来的数组。以上不能显示?

------解决方案--------------------
{foreach from = $Array item = $item}
{$item}
{/foreach}