Sorry, I'm a newbie. I tried the code like this:
App Controller
function beforeRender() {
if($this->Session->check('User')){
$this->set('user',
$this->User->findById($this->Session-
>read('User.id')));
Config::write($user,
$this->User->findById($this->Session-
>read('User.id')));
}else{
}
}
Accounts Controller
function testpage() {
Config::read($user);
$account_id = $user['Account']['id'];
$this->set('account_id', $account_id);
}
but it gives me:
Fatal error: Class 'Config' not found
>From searching the group it looks like maybe this is a component I
need to add? I am running Cake 1.1.18 by the way.
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
-~----------~----~----~----~------~----~------~--~---