Re: HTML_Template_Flexy and DB_DataObject with Paging (and lack of flexy:while)
| From: | Dan Rossi | Date: | Wed, 13 Apr 2005 13:16:42 +0000 |
| Subject: | Re: HTML_Template_Flexy and DB_DataObject with Paging (and lack of flexy:while) | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-18726@lists.php.net to get a copy of this message | ||
yes i do gimme a min !
On 13/04/2005, at 11:53 PM, Ian P. Christian wrote:
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 -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php