On 9/16/07, Chris Hartjes <[EMAIL PROTECTED]> wrote:
>
> On 9/15/07, Charlie van de Kerkhof <[EMAIL PROTECTED]> wrote:
> > // In model Ticker:
> > $artists = $this->Artist->findById(12);
> >
> > is not working because the model Artist is not known (?) in model
> > Ticker. Even with the loadModel('Artist') is is not working.
> >
> > Anyone any idea?
> > thnx in advance
>
> You can't use $this-><Model name here> inside another model. You have
> to create an instance of that model.
>
IMO you should avoid using one model inside another as far as possible
- loose coupling
T
--
=============================================================
Cheesecake-Photoblog: http://cheesecake-photoblog.org
PHP for E-Biz: http://sanisoft.com
=============================================================
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---