$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.ti
->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,连接。
请问如何处理?
最佳答案