thinkphp3.2.2分页问题

浏览:580 发布日期:2014/10/27 分类:求助交流
按照开发手册来做,
$list = $sql->where('hd_news.typeid=hd_type.typeid="'.$typeid.'" and newskey REGEXP"'. $key.'"')->limit($Page->firstRow.','.$Page->listRows)->select();


$this->assign('list',$list);// 赋值数据集


$this->assign('page',$show);// 赋值分页输出

$this->display(); // 输出模板

------------------------------------------------


<volist name="list" id="v">

<h1>{$v.title}</h1>

<p>内容有:{$v.content}</p>


</volist>

{$page}
-------------------
第一页的URL是http://localhost/news/index.php/Home/Index/link.html,
点击下一页的时候页面URL变为http://localhost/news/index.php/Home/Index/link/p/2.html,而且是空白页面。可能是分页路由的问题,新手不会,求大神解答。


最佳答案
评论() 相关
后面还有条评论,点击查看>>