Wouldn't it be much nicer if we could just pass in an already-accessed
recordset to pagination, and have Pagination access pages of data through
that recordset?

The way it's implemented now violates the MVC concept, since pagination acts
as both model & view, and arguably controller as well.  It also creates a
duplicate method of accessing the data that, worse, lacks the features of
find and findAll.

Have someone made the request already?  If not, can Nabble post it on Trac? 

Thanks.
Paul Wolborsky


dardosordi wrote:
> 
> 
> is there any way i can use $this->paginate() with a custom query?
> 
> I'm doing a double join and filtering the results and need to paginate
> my results. Hope somebody could help me with this. Ask me if you need
> more details about my models, etc.
> 
> 
> > 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Cake-php-1.2-pagination-with-custom-query-tf3820797.html#a10976218
Sent from the CakePHP mailing list archive at Nabble.com.

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to