import('ORG.Util.Page');// 导入分页类
$count= $this->fwm->count();// 查询满足要求的总记录数
$Page= new Page($count,10);// 实例化分页类 传入总记录数和每页显示的记录数
$show= $Page->show();// 分页显示输出
// 进行分页数据查询 注意limit方法的参数要使用Page类的属性
$list = $this->fwm->order('create_time')->limit($Page->firstRow.','.$Page->listRows)->select();
$this->assign('list',$list);// 赋值数据集
$this->assign('page',$show);// 赋值分页输出
$this->display('fwm'); // 输出模板
加上 order('create_time')后 返回数据是0条 还有啥其他要求吗? 最佳答案
