|
||||
|
There's a Zend_View_Pagination? Thought that never made it through?
Anyways all I know for now is for pagination you either have to implement it yourself or use some third party pagination methods.
__________________
Zym Framework - A Zend Framework extension library w/ demo app SpotSec Blog: http://spotsec.com/blog |
|
|||
|
Check this
It's in czech, but try it... |
|
|||
|
Pagination is basically getting the limit and offet sent to the SQL statement like:
"SELECT * FROM myTable LIMIT $numRowsToGet, $getRowsFromOffset" I created a PAGINATOR view helper class to handle pagination. It received $params and $total from the controller. Here is the code. Any suggestions / comments would be great. PHP Code:
|
|
|||
|
The db stuff is handled outside of the paginator.
This could easily be modified in to a helper. PHP Code:
|
|
|||
|
Hello everybody, I found this simple yet powerful pagination class that works over arrays collections, so it can be used for paginating database resultsets, XML documents or everything else convertible to arrays in PHP language.
It's provided as a zip package consisting on the class source code and a quick start manual. Hope you like it. |
|
||||
|
this post at Digital Fashion is designed for ZF (uses Zend_Db etc.)
However, I ended up using AJAX for this. The controller runs the query and returns all results to the browser, then I made a javascript pagination object. This is handy as I don't have to worry about limits and offsets for my queries and all the sorting is done on the client side. jQuery makes this a breeze. |
![]() |
| Thread Tools | |
| Display Modes | |
|
|