Version 7, last updated by jwellner at March 30, 2008 03:51 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:

12345678910111314151617181920212223242526>last ›


Digg style:

« previous 123456789102526next »


Extended style:

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


PunBB style:

pages: 12326