修改后效果
/c_1.html 首页
/c_1_2.html
/c_1_3.html
修改文件 TP3.2
ThinkPHP\Extend\Library\ORG\Util\Page.class.php
第79行
// 分析分页参数
if($this->url){
//$depr = C('URL_PATHINFO_DEPR');
$url = rtrim(U('/'.$this->url,'',false),$depr).$depr.'__PAGE__'.'.html';控制器调用$page = new Page($count ,5, '', 'c_'.$cid.'_');
也就是最后一个参数. 加上你想要的样式就行 cid是上面的栏目ID
配置文件加上路由规则
'URL_MODEL' => 2,
'URL_ROUTER_ON' => true,
'URL_ROUTE_RULES' => array(
'/^c_(\d+)$/' => 'Index/List/index?id=:1',
'/^c_(\d+)_(\d+)$/' => 'Index/List/index?id=:1&p=:2'
),最终效果加个图片吧
最佳答案