ThinkPhP 3.2.2 分页连接多出HOME,导致404

浏览:701 发布日期:2014/06/20 分类:求助交流 关键字: 分页
代码是:
$Article = D("Article");
$count = $Article->where('is_delete=0')->count();
$Page = new \Think\Page($count,25);
$show = $Page->show();// 分页显示输出

$list = $Article->table(C('DB_PREFIX').'article a,'.C('DB_PREFIX').'article_cate c')
->field('a.id,a.title,c.title as articleceta_title,a.create_time,a.update_time,a.is_effect,a.sort')
->order('a.id desc')
->where('a.cate_id=c.id AND a.is_delete=0')
->order('update_time DESC')
->limit($Page->firstRow.','.$Page->listRows)
->select();

$this->assign('modelname',"前台文章");// 赋值数据集
$this->assign('count',$count);// 赋值数据集
$this->assign('list',$list);// 赋值数据集
$this->assign('page',$show);// 赋值分页输出

在配置文件中加入了:
// 默认模块和Action
'MODULE_ALLOW_LIST' => array('Home'),
'DEFAULT_MODULE' => 'Home',

然后在前台看分页的连接时,多了HOME,连接。

请问如何处理?
最佳答案
评论( 相关
后面还有条评论,点击查看>>