TP3.2定义路由后,如何修改分页产生的路径

浏览:1622 发布日期:2014/02/23 分类:求助交流
需要修改分页产生的链接地址,怎么修改。比如:
$limit = 5;
$count = $db->limit($limit)->where($where)->count();
$page = new \Think\Page($count, $limit);
$showPage = $page->show();
得到的路径为:
分页数字1下链接为:
http://localhost/blog/index.php/Home/Index/index/p/1.html
想修改路由规则为:
http://localhost/blog/index.php/Home/p/1.html
新手求助,感谢解答。
最佳答案
评论( 相关
后面还有条评论,点击查看>>