Bugfixes release of Zend Framework pagination component 3

I just released on riskle's assembla space a new version of my pagination component for the Zend Framework which you can download right now: Riskle Paginate r122 This release fixes a nasty bug in Riskle_Db_Table::fetchCols which prevented from retrieving the right count of cols involved in the...

Zend Framework Pagination, third strike 7

UPDATE: new version (r105) available. The component was given a little rewrite as expected, but maybe a little bit later than I would have wanted to :-) So it now has its own Rowclass proxy from which you can pull various infos such as current page, page range, next page, etc all exposed as getter...

findBy{$Field} with Zend_Db_Table

A quick post to show how one can easily implement a findByField wrapper in Zend_Db_Table: [php] /** * Implements a simple findByField wrapper */ public function __call($method, $args) { if (preg_match('/^findBy([a-zA-Z0-9]+)$/', $method, $parts)) { $field =...

Zend_Db_Table and tables relationships 7

When developping a database tied application, you eventually come to a point where you get (at least) two tables with a parent/child relationship, such as for example a User table referenced by, say, a Post table (each post belonging to a specific user). That's basically the point where you need...

Zend Framework Pagination reloaded 8

UPDATE A new version of this component is available. I have a new version of my pagination component which solve the issue previously pointed out by Guy. This update comes along with a subclassed version of Zend_Db_Table which allows counting and specific columns selection respectively via the...

Pagination with the Zend Framework 6

Yesterday I came up with a small pagination component for the Zend Frameworks. It implements the Proxy pattern around a Zend_Db_Table object, and overloads the fetchAll method. The main problem I encountered here was to retrieve the total number of rows for the table. I'm using a Zend_Db_Select...

Top tags