mirror of
https://gitee.com/ulthon/ulthon_information.git
synced 2026-03-03 16:24:28 +08:00
完成分页优化
This commit is contained in:
@@ -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);
|
||||
});
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user