I've seen models that don't use a database table too, but an example
of how to load in data (say the apples and oranges are the result of
some kind of search) into a model for pagenation would be helpful.

Zoltan

On May 25, 3:29 am, 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


--~--~---------~--~----~------------~-------~--~----~
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