PHP Developers Network
http://forums.devnetwork.net/

Questions about ZendPaginator and table rows
http://forums.devnetwork.net/viewtopic.php?f=72&t=113477
Page 1 of 1

Author:  Darhazer [ Sat Feb 27, 2010 2:20 pm ]
Post subject:  Questions about ZendPaginator and table rows


Author:  Eran [ Sat Feb 27, 2010 5:30 pm ]
Post subject:  Re: Questions about ZendPaginator and table rows

Count and paginate manually. Not everything has to use ZF provided components - especially if they don't fit the scenario well.
I mostly use my own paginator instead of zend's

Author:  Darhazer [ Sun Feb 28, 2010 5:33 pm ]
Post subject:  Re: Questions about ZendPaginator and table rows

Thanks pytrin, I'll do it this way.
Getting the required subset of rows from the model, and the total count is really easily, as well as passing the page param around. Is there easy way to render the navigation, some ready-to-use view helper?

Author:  Eran [ Sun Feb 28, 2010 6:44 pm ]
Post subject:  Re: Questions about ZendPaginator and table rows

Not that I'm aware of. I took the process phpBB uses to create their pagination almost as is, just cleaned it up a bit and made a helper out of it. It's somewhat of kludge, but I don't think there's an elegant solution to all those presentation conditionals. I've attached my version to this post

Attachments:
Pagination.zip [849 Bytes]
Downloaded 370 times

Page 1 of 1 All times are UTC - 5 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/