News Feed
Sections




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

Zend Developer Zone:
Paging and Sorting Data with Zend Framework, Doctrine and PEAR (part 1)
December 11, 2009 @ 09:43:29

On the Zend Developer Zone there's the first part of a series looking at pagination and sorting of data with the combination of the Zend Framework, Doctrine and PEAR.

When building database-backed applications, one of the important problems for a developer or user interface engineer involves making large data sets more manageable by, and therefore more useful to, application users. [...] Back in the good old days, adding pagination to a PHP application was mostly a manual task, involving offset calculations and custom query generation. In recent years, the task has become significantly simpler, mostly due to the presence of ready-made pagination components in most common frameworks.

His tutorial uses the Zend Framework, Doctrine and the Pager, MDB2 and Structures_Datagrid PEAR packages. He starts with a basic select and format kind of example to show a few lines per page. To improve it (for larger data sets) he shows how to use the Zend_Paginator to only grab the rows needed for the page. Finally, he adds in code to allow for column sorting, making it easy to reorganize the results how you'd like.

1 comment voice your opinion now!
zendframework pagination sorting doctrine pear tutorial


blog comments powered by Disqus

Similar Posts

Nadeau Software: PHP tip: How to get a web page using CURL

PHPBuilder.com: PHP Dependency Injection Creates More Maintainable Code

PHPImpact Blog: Zend Framework: The Cost of Flexibility is Complexity

Padraic Brady's Blog: Zend Framework Caching (Parts 1, 2 & 2b)

Stefan Mischook's Blog: Video Tutorial: PHP conditionals


Community Events





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


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

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