Thanks Guys

Both solutions worked, not sure if one is 'more correct' than the
other; but both seemed to do the job.

Regards

David

On Jun 23, 7:41 pm, arif hossen <[email protected]> wrote:
> Please use this code:
>
> function index() {
>                $this->Dashboard->recursive = 0;
>                $this->set('dashboards', $this->paginate($this->Dashboard));
>        }
>
>
>
> On Tue, Jun 23, 2009 at 9:34 PM, DavidH <[email protected]> wrote:
>
> > Thanks for your help Brian, I'm going to try that now.
>
> > Regards
>
> > David
>
> > On Jun 23, 4:16 pm, brian <[email protected]> wrote:
> >  > 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'));
>
> --
> Dear Mr.Rayhan,
>
> Regards,
> Mohammad Arif Hossen
> Junior Web Developer
> United Group International(UGIBD)www.ugibd.net
> Mobile no:  +88 01714355911
> Mobile no:  +88 01922110308
--~--~---------~--~----~------------~-------~--~----~
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