I need to set a varibiale from the AuthComponent
var $something = AuthComponent::user('group_id');
Gives me a syntax error in NetBeans. If I just set:
var $something = AuthComponent::user;
I dont get an error, but does this contain all the user data, and how do I then access it for a conditional key value pair?
'Group' => array(
'className' => 'Group',
'foreignKey' => 'group_id',
'conditions' => '', // access the Auth Component here
'fields' => '',
'order' => ''
),