2017 © Pedro Peláez
 

library pagination

Php pagination, visited by direct view page(not ajax), and use bootstrap css.

image

linice/pagination

Php pagination, visited by direct view page(not ajax), and use bootstrap css.

  • Friday, April 8, 2016
  • by linice
  • Repository
  • 1 Watchers
  • 0 Stars
  • 93 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

pagination

Pagination contains an instantiable class, along with a view which renders the pagination markup., (*1)

The purpose of this library is to provide a simple API to render pagination markup, without having to worry about including common files and set too many settings. With this class, you simply pass in your parameters and make a call to the instance's * method., (*2)

Pagination using bootstrap theme(css), so just include bootstrap.css in your view page., (*3)

` php <?php // source inclusion require_once PRJ_PATH . '/vendor/pagination/Pagination.class.php';, (*4)

use Pagination;, (*5)

// determine page (based on <_get>) $page = isset($_GET['page']) ? ((int) $_GET['page']) : 1; // instantiate; set current page; set number of records $pagination = new Pagination(); $pagination->setCurrent($page); $pagination->setRPP(15); $pagination->setTotal(200); // grab rendered/parsed pagination markup $pager = $pagination->parse();, (*6)

`, (*7)

The Versions

08/04 2016

dev-master

9999999-dev

Php pagination, visited by direct view page(not ajax), and use bootstrap css.

  Sources   Download

The Requires

  • php >=5.6.0

 

01/04 2016

v1.0.1

1.0.1.0

Php pagination, visited by direct view page(not ajax), and use bootstrap css.

  Sources   Download

The Requires

  • php >=5.6.0