library pagination
pagination build
noroman/pagination
pagination build
- Monday, March 6, 2017
- by noRoman
- Repository
- 0 Watchers
- 0 Stars
- 9 Installations
- PHP
- 0 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 3 Versions
- 0 % Grown
require_once __DIR__ . '/vendor/autoload.php';
use Pagination\Templates\Hellip;
use Pagination\Templates\Simple;
$currentPage = 9;
$total = 200;
$url = '/news/articles/2017/';
/* template Hellip ------------------------------------------------------------------- */
/* 1 … 5 6 <7> 8 9 … 21 */
$pagen = new Hellip($url);
$pagen->setTotal($total)->setCurrentPage($currentPage);
// $pagen->setPageSize(10); // the default
// $pagen->setMiddlePages(5); // the default
echo $pagen->getHtml();
echo '
';
/* template Simple ------------------------------------------------------------------- */
/* « 2 3 4 5 6 » */
$pagen = new Simple($url);
$pagen->setTotal($total)->setCurrentPage($currentPage);
// $pagen->setPageSize(10); // the default
// $pagen->setMiddlePages(5); // the default
echo $pagen->getHtml();
echo '
';
dev-master
9999999-dev
pagination build
Sources
Download
MIT
The Requires
by
NovikovRoman
v0.0.2
0.0.2.0
pagination build
Sources
Download
MIT
The Requires
by
NovikovRoman
v0.0.1
0.0.1.0
pagination build
Sources
Download
MIT
The Requires
by
NovikovRoman