Yes I saw defaultModel too after I posted.

Both my paginated models were in paginator's params array but using
them both seems, as you say, to only affect parst of the helper. For
example, numbers pulls the correct values provided by the component
and uses them for counting pages but does not use them for
constructing model-specific links themselves.

I can see why. How often is it a good idea to paginate two models on
the same page? My case was a bit of a gui-playground. It was a "log
view" of text and picture messages sent to a certain phone and I
thought it would be cool to split the page and have both types of
messages paginated right there. Not your typical page.

The funny thing was that numbers printed two sets of numbers correctly
for the two models but all the links were the same for both. That got
me all exited and sure I had just missed some array trickery. :)


/Martin


On Sep 8, 6:37 pm, Miles J <[email protected]> wrote:
> The paginator class seems a bit "incomplete". From your example with
> options() it looks like the paginator should work with multiple
> models, but then it also calls $model = $this->defaultModel(); which
> always defaults to a single model and your additional models aren't
> added to the params (lines 103-112).
>
> However, on your numbers() method it also seems correct, but then
> again, the model doesnt exist in the params array?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" 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