> worked it out
>
> class UserController extends AppController
> {
> var $uses = array('Post','User');

no need for $uses, check the manual for how associations work.

If you're in PostsController, then you can access related models of
Post like so:

$this->Post->User-> etc

if you're in Users you can do:

$this->User->Post-> etc

using $uses you end up with this information twice, as Cake autoloads
it all for you anyway.

cheers,

jon


-- 

jon bennett
w: http://www.jben.net/
iChat (AIM): jbendotnet Skype: jon-bennett

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