Hi,

declare $uses in your model which shall retrieve data from the other  
model:

var $uses = array('Foo', 'Bar');

Regards,
Sascha

Am 25.07.2007 um 22:57 schrieb starkey:

>
> Hello,
>
> How do I access a model that is not associated in any way to the
> current model?  For example, lets say I'm in FooController and I need
> data from the Bar table (or save data to it)... without having any
> defined association (e.g. belongsTo or hasMany).
>
> Sounds easy but I'm stumbling on it.
>
> Thanks a lot!
> Shawn
>
>
> >


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