PHP code example of big-dream / think-paginator-driver

1. Go to this page and download the library: Download big-dream/think-paginator-driver 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/ */

    

big-dream / think-paginator-driver example snippets


return [
    'think\Paginator' => \bigDream\thinkPaginatorDriver\Bootstrap4::class
];

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

return [
    'type' => \bigDream\thinkPaginatorDriver\Bootstrap4::class,
];

\think\facade\App::bind('think\Paginator', \bigDream\thinkPaginatorDriver\Bootstrap4::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);