Files
ulthon_information/app/index/controller/BaseController.php
2020-08-20 12:12:12 +08:00

21 lines
442 B
PHP

<?php
namespace app\index\controller;
use app\BaseController as AppBaseController;
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);
});
}
}