PHP Classes

Little Paginator: Generate links to navigate listings split in pages

Recommend this page to a friend!
     
  Info   View files Files   Install with Composer Install with Composer   Download Download   Reputation   Support forum   Blog    
Ratings Unique User Downloads Download Rankings
Not enough user ratingsTotal: 619 All time: 5,091 This week: 455Up
Version License PHP version Categories
little-paginator 1.2GNU General Publi...5.0HTML, PHP 5
Description 

Author

This class can generate links to navigate listings split in pages.

It takes as parameters the total number of entries to list, the limit number of entries to show in each page and the limit of pages to link.

The class returns an array with details of each link such as the URL and the page number, the next and previous page links, etc..

En Español:

Ésta clase prepara en un arreglo una lista de nodos contados para formar el paginado.

Está enfocado primordialmente a Patrones Modelo-Vista-Controlador (MVC) por lo que no manipula HTML diréctamente y puede usarse en rainTPL o Smarty con facilidad.

Picture of Cody Roodaka
  Performance   Level  

 

  Files folder image Files (3)  
File Role Description
Plain text file class.paginator.php Class Main class
Accessible without login Plain text file ejemplos.php Example Ejemplos de uso
Accessible without login Plain text file output.json Output salida en JSON

The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page.
Install with Composer Install with Composer
 Version Control Unique User Downloads Download Rankings  
 0%
Total:619
This week:0
All time:5,091
This week:455Up
User Comments (1)
Difficult for PHP-beginners who have no Spanish.
12 years ago (Finn Jelstrup)
22%StarStar