okvee/pagination

PHP Pagination

2.0 2013-10-25 15:13 UTC

README

PHP Pagination.

Example:

require_once '../Okvee/Pagination/Pagination.php';

use Okvee\Pagination\Pagination;

$config['base_url'] = 'http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF'];
$config['per_page'] = $limit; // limit display per page.
$config['total_rows'] = count($data);

$pagination = new Pagination($config);
echo $pagination->createLinks();

More example is in test folder.