1、首先你得引入layui文件吧

2、在 application\config.php 中配置,像这样,,,

TP5之使用layui分页样式

3、controller中这样写

       $data = Db::table($table)
->paginate(10);//查出数据表所有数据

view中这样写
    {$data->render()}

over!喽

对,效果图在这
TP5之使用layui分页样式

 

 

相关文章:

猜你喜欢
相关资源
相似解决方案