1 找到文件:/thinkphp/library/think/paginator/driver/Bootstrap.php <?php // +---------------------------------------------------------------------- // | ThinkPHP [ WE CAN DO IT JUST THINK ] // +-------------------------------------------------------------
1.在thinkphp/library/think/paginator/driver目录下新建文件Page.php 注意命名空间和继承 <?php namespace think\paginator\driver; use think\Paginator; class Page extends Paginator { public $rollPage=5;//分页栏每页显示的页数 //首页 protected function home() { if ($this->currentPage()