本来是
/activity.html?page=2


设置分页参数 url路径

$pages=input('param.page/d');
$options=[
        'page'=>$pages,
        'path'=>'/activity'."/page/[PAGE].html",
];
$activity = db('activity')->where(['type'=>$type,'status'=>1])->order('id desc')->paginate(8,false,$options);

之后
/activity/page/2.html

标签: php, thinkphp

添加新评论