我想做一个查询的集合文件如 :/Application/API/themes.class.php
里面写着很多查询的封装函数: 如:
public function content($limit){
return M('content')->limit(10)->select();
}然后前台就可以直接
<volist name="cotent" id="vo"> <volist name="vo['sub']" id="sub"> {$sub.name} </volist></volist>这样子,希望指点一下!