Simplerules wrote:
> No matter what I do it won't work here is the code:
>
> //Get User Data;
> $Profile = $this->Session->read('User');
>
> if(isset($Profile['Username']))
> {
> $this->set('logged_in', TRUE);
> $this->set('username', $Profile['Username']);
> } else {
> $this->set('logged_in', FALSE);
> }
> }
>
> and no matter where I put it I get:
>From the code, why not do
$Username = $this->Session->read('User.Username');
if($Username) {
...
Where /are/ you putting it, and are you getting this error on every
page request or just a few (like just your static pages, or just your
error messages etc.)?
Cheers,
AD7six
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---