频道,列表分页

控制器

$id=input('id');
$Category=new \app\index\model\Category;
$cid=$Category->getChildrenId($id); 
$map['category_id']=array("in",$cid);
$res=getLists('document',$map,2,'id desc',"");;
$this->assign('res', $res);

模板

{volist name="res.list" id="vo"} 
          <a href="{:url('article/detail?id='.$vo['id'])}" >{$vo.title}</a>
 {/volist} 
 </ul>
 <ul class="page">
      {$res.page}
  </ul>