完成分页优化

This commit is contained in:
augushong
2020-08-20 12:12:12 +08:00
parent 44ff06a2fd
commit e07ca74785
5 changed files with 50 additions and 27 deletions

View File

@@ -3,17 +3,18 @@
namespace app\index\controller;
use app\BaseController as AppBaseController;
use think\facade\Config;
use think\facade\View;
use think\helper\Str;
use app\common\Bootstrap;
use think\Paginator;
class BaseController extends AppBaseController
{
public function initialize()
{
parent::initialize();
Paginator::maker(function($items, $listRows, $currentPage, $total, $simple, $options){
return new Bootstrap($items, $listRows, $currentPage, $total, $simple, $options);
});
}
}