Re: Question about Pager and DB_DataObject
| From: | Massimiliano Arione | Date: | Fri, 26 May 2006 10:38:55 +0000 |
| Subject: | Re: Question about Pager and DB_DataObject | ||
| References: | 1 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-24166@lists.php.net to get a copy of this message | ||
Jose Manuel Zea wrote:
I started to use Pager with DB_DataObject to paginate get result lists. The problem is that the way I´m doing it is to get all the data and then pass it to the Pager, so if the amount of data is not filtered it could be very large if we have a lot of rows. I don´t know if there is a way of joining together Pager and DB_DataObject so only receive the data we want to visualize but we can get also the links to the other pages.Of course there's a way. Look into Pager/examples/Pager_Wrapper.php in your PEAR docs directory -- Massimiliano Arione http://garakkio.altervista.org