Yeah, but how would a model that doesn't use db tables present data
for Paginate() to use? Sorry if this is an obvious question, but I am
seriously not getting this concept :(
Thanks,
Graham
On 25 May, 08:29, AD7six <[EMAIL PROTECTED]> wrote:
> On May 24, 5:01 pm, gmwebs <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
> > Hi,
>
> > Is there any way to paginate data other than Model records using the
> > Paginator helper? For instance, I want to paginate an array, not the
> > actual Model records.
>
> > Something like:
>
> > **** Pseudo Code *****
>
> > var $paginate = array('limit' => 3);
>
> > $fruit = Array('apples','oranges','pears','prunes');
> > $this->set('results', $this->Paginate($fruit));
>
> > **** End Pseudo Code *****
>
> > Regards,
>
> > Graham
>
> where are these apples and oranges coming from? Models don't have to
> be db tables.
>
> cheers,
>
> AD- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---