>From the looks of it, looks like the while User array is in the
Session. I don't know if you did this or not. If not, you have to
actually write the key somewhere because, I don't think (I may be
wrong) access it in it's current form. ex- $this->Session-
>read('User.first_name');
I haven't actually tried this but, this is definitely your problem.
first_name is inside of the User array.
On Nov 13, 1:05 pm, Brian <[EMAIL PROTECTED]> wrote:
> >From within my controller if I print the entire session:
>
> $this->Session->read()
> It returns:
> Array ( [Config] => Array ( [userAgent] =>
> cbc2e74d1e45abcccfdc85ca016f6426 [time] => 1194988565 [rand] =>
> 1309992527 ) [User] => Array ( [id] => 1 [username] => brehg
> [password] => DEB8ABLE [email] => [EMAIL PROTECTED] [first_name] =>
> Brian [last_name] => Rehg ) )
>
> If I try to print an element within the array:
> $this->Session->read('first_name');
> returns:
> nothing
>
> What am i doing wrong
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---