PHP code example of thinkphp6 / thinkphp-extend-paginator

1. Go to this page and download the library: Download thinkphp6/thinkphp-extend-paginator library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

thinkphp6 / thinkphp-extend-paginator example snippets



return [
    'think\Paginator' => \wanyi\thinkExtendPaginator\Bootstrap4::class
];


// 设置服务注入
\think\facade\App::bind('think\Paginator', \wanyi\thinkExtendPaginator\Bootstrap4::class);

return [
    'type' => \wanyi\thinkExtendPaginator\Bootstrap4::class,
];

\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap4::class);
\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap5::class);

\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Layui::class);

\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\AmazeUI::class);

\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Foundation::class);