On Tue, Jun 23, 2009 at 11:10 AM, brian<[email protected]> wrote:
> I think the main model has to be first. Have a look at
> Controller::constructClasses(). Specifically, this line:
>
> $modelClassName = $uses[0];
>
Then have a look at paginate(). I think the problem is that you're not
passing the model name in your call. If that's empty, Cake will use
$this->modelClass, which, in constructClasses(), is assigned the value
of $modelClassName (eg. $uses[0]).
So, it should be fine to do:
$this->set('dashboards', $this->paginate('Dashboard'));
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---