求助Thinkphp关联模型怎样分页

浏览:1401 发布日期:2014/04/01 分类:求助交流
import('ORG.Util.Page');

$codeHandle=D("Baoming");

$codecount=$codeHandle->count();
$page=new page($codecount,C('USERCOUNT'));
$limit=$page->firstRow.','.$page->listRows;
$coderes=$codeHandle->relation(true)->order('id desc')->limit($limit)->select();
关联模型这样分页没有效果,显示不出来,求指教
最佳答案
评论( 相关
后面还有条评论,点击查看>>