使用方法:
1. 在TP5配置文件中配置分页参数:
//分页配置
'paginate' => [
'type' => 'Layui',
'var_page' => 'page',
'list_rows' => 15,
]
2. 下载文件,并复制到 \thinkphp\library\think\paginator\driver
![](https://img.haomeiwen.com/i15217050/222e9f0d78d9bfe2.png)
链接:https://pan.baidu.com/s/1syrtmO9htM0Bajtd3zER9g
提取码:5var
3. 模板文件中代码:
<div class="laypage-main">
{$articles->render()}
</div>
网友评论