News Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Rob Allen's Blog:
Exploring Zend_Paginator
May 04, 2011 @ 11:26:57

Rob Allen has a new post today exploring Zend_Paginator and some of the features it has to offer.

One area of displaying lists on web pages that I've generally disliked doing is pagination as it's a bit of a faff. Recently, I needed to do just this though as I couldn't delegate it as my colleague was too busy on other work. As a result, I thought that I should look into Zend_Paginator this time. Turns out that it's really easy to use and the documentation is great too.

He includes some sample code to set up the paginator (for his example it uses a data mapper) and push the results from the database into the Zend_Paginator object. He shows how to use the paginator to work through the results, pulling a page number from the URL. Finally, he shows the HTML to include the pagination links into your page.

0 comments voice your opinion now!
zendframework zendpaginator tutorial example


blog comments powered by Disqus

Similar Posts

Jani Hartikainen's Blog: Zend_Acl part 1: Misconceptions and simple ACLs

ZendCasts.com: Unit Testing Doctrine 2 Entities

PHPBuilder.com: Getting started with Flex and Zend_Amf

IBM developerWorks: MVC with Agavi - Add forms and database support with Agavi and Doctrine

Mikko Koppanen's Blog: ImagickPixelIterator is not read-only after all...


Community Events





Don't see your event here?
Let us know!


tips podcast release conference development code api zendserver interview bugfix laravel list community language framework voicesoftheelephpant symfony series deployment introduction

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework