HTML_Template_Flexy and DB_DataObject with Paging (and lack of flexy:while)

From: Date: Wed, 13 Apr 2005 13:53:09 +0000
Subject: HTML_Template_Flexy and DB_DataObject with Paging (and lack of flexy:while)
Groups: php.pear.general 
Request: Send a blank email to pear-general+get-18722@lists.php.net to get a copy of this message
I'm interested to see if anyone has come up with a nice paging system using Flexy and DB_DataObject, ideally the formatting of the pager and the number of results per page should be done in the template. One huge issue I've come across with limiting DB_DO objects from the template would be running a while loop over it, because flexy doesn't offer a while loop feature. I would be very interested to hear how people have intergrated these classes. I could do the while loop in the Page class pushing data into an array, and then the template can do a foreach over the array, but this is inefficient and wouldn't allow for results-per-page limiting on the template. Ideas/Suggestsions very welcome! Kind Regards, Ian

« previous php.pear.general (#18722) next »