phpcms基础循环

lists循环{pc:content action= "lists " catid= "2 " order= "id DESC " num= "4 "}{loop $dat

lists循环
{pc:content action="lists" catid="2" order="id DESC" num="4"}

{loop $data $key $val}

{/loop}

{/pc}

category循环

{pc:content action="category" catid="0" num="25" siteid="$siteid" order="listorder ASC"}
{loop $data $r}
<li><a href="{$r[url]}"><span>{$r[catname]}</span></a></li> {/loop}
{/pc}