On Wed, Mar 5, 2008 at 11:22 AM, Mech7 <[EMAIL PROTECTED]> wrote: > > Is it possible to use the paginate for an array? Basically hi have an > article which contains pagebreaks, which i just put in an explode so > it's an array.. but can i utilize the paginate function from cake for > this?
Yes, you just have to create your own paginate() and paginateCount() methods for the model that contains the data you wish to paginate. I recently added some info on how to do this in two places http://book.cakephp.org/view/164/pagination http://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-pagination-queries/ Hope that helps. -- Chris Hartjes Internet Loudmouth Motto for 2008: "Moving from herding elephants to handling snakes..." @TheKeyBoard: http://www.littlehart.net/atthekeyboard --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---