Hello everyone, I'm trying to get the hang of Cake, but it's rather
difficult due to the sparse documentation out there.
I have this code in my model:
var $belongsTo = array('User' =>
array('className' => 'User',
'conditions' => 'User.id = ???',
'order' => '',
'dependent' => true,
'foreignKey' => 'users_id'
),'Activity' =>
array('className' => 'Activity',
'conditions' => '',
'order' => '',
'limit' => '',
'foreignKey' => 'id',
'dependent' => true,
'exclusive' => false,
'finderQuery' => ''
)
);
Where it says "User.id = ???", it should be pulling the user id from
the session variable. It's stored in $_SESSION['User']['id']. I
can't seem to be able to get this to work, if you could please post
the proper syntax of this statement I would appreciate it a lot.
Thanks!
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---