smarty tpl 循环
- HTML code
{section name=h1 loop=$result} {$result[h1].cat_name}; {/section}.tpl 文件中怎么循环输出php传过来的数组。以上不能显示?
[解决办法]
{foreach from = $Array item = $item}
{$item}
{/foreach}
发布时间: 2012-09-18 16:21:42 作者: rapoo
smarty tpl 循环
{section name=h1 loop=$result} {$result[h1].cat_name}; {/section}