Space Home

Version 7, last updated by jwellner at Mar 30 10:51 2008 UTC

Zend Framework Pagination Helper

Zend Framework Pagination Helper like Kohana Pagination

Usage :

- checkout the files from the repository and copy them to your library.

svn checkout http://svn2.assembla.com/svn/ZendPaginationHelper .

- add the following lines in your controller :

      $this->view->addHelperPath('notech/view/helper', 'Notech_View_Helper');
$this->view->pagination_config = array( 'total_items'=>100,
'items_per_page'=>25,
'style'=>'digg');

- add the following lines in your view :

echo $this->pagination($this->pagination_config)->create_links();

Output :

Classic style:

1 2 3 4 5 6 7 8 9 10 11 13 14 15 16 17 18 19 20 21 22 23 24 25 26 > last ›


Digg style:

« previous 1 2 3 4 5 6 7 8 9 1025 26 next »


Extended style:

« previous | page 1 of 26 | items 1–10 of 254 | next »


PunBB style:

pages: 1 2 326

 

Navigate Pages