One - One Code All

Blog Content

smarty的基础用法

PHP   2012-09-29 21:04:33

嵌套输出:

{foreach  item=v from=$data}
{foreach key=key item=item from=$v.tags}
{$key}: {$item.id}
{/foreach}
{/foreach}


上一篇:PHP-MySQL:Headers and client library minor version mismatch
下一篇:Yaf_Http_Request类常用方法,获取参数等

The minute you think of giving up, think of the reason why you held on so long.