$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
新手求助,感谢解答。
最佳答案