Wednesday, March 30, 2011

Re: Paginate pre-ordered list

My apologies.  In retrospect, I think the only method in the PaginatorHelper that I used when manually loading the helper (and not using Controller::paginate()) was PaginatorHelper::sort().

Basically, since you are not using the Controller::paginate() function, you pretty much either have to write your own pagination.  In order to be able to use Cake's automagic for pagination, you need to be able to express the query with the same parameters as a Model->find('all', $options).  What exactly are you doing in the Like::getMostLiked() function?

--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
 
 
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php

No comments: