Thanks but doesnt this override it for all ? The article controller
has a basic pagination on the index, and the index for the admin.. but
for the view for one article i need to change it for pagebreaks within
one article.

On Mar 5, 5:35 pm, "Chris Hartjes" <[EMAIL PROTECTED]> wrote:
> 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/paginationhttp://www.littlehart.net/atthekeyboard/2008/03/04/custom-cakephp-12-...
>
> 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 [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