Thnx Marcello.

But the uses var is in the controller and I already added the Artist
to the Ticker controller.
But I'm using the Artist model inside the Ticker model and not inside
the Ticker controller so I guess that the uses var is only valid in
the controller.

On Sep 15, 10:04 pm, "Marcelo Linhares" <[EMAIL PROTECTED]>
wrote:
> $uses = array("Artist","Ticker");
>
> []s
> Marcelo Linhares
>
> 2007/9/15, Charlie van de Kerkhof <[EMAIL PROTECTED]>:
>
>
>
>
>
> > Hi,
>
> > I like to use the model standard functions like findById() in another
> > model instead of a controller.
> > In model Ticker I want data from a table called 'artists' which has
> > model 'Artist' but model Ticker doesn't use a database table.
>
> > // 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
>
> --
> Marcelo Linhares
> AgĂȘncia Detalhes -http://www.agenciadetalhes.com.br
> MyFinance - Gerencia suas finanças onlinehttp://www.myfinance.cc


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