Is 'Username' really capitalized as the table name in your schema?

Cake conventions would make this lowercase.

So if you made it lower case in the db schema, but then try to refer to it as sentence/camel case the variable Username would not actually exist because it is really 'username'.


On 8/20/06, Simplerules <[EMAIL PROTECTED]> wrote:

No matter what I do it won't work here is the code:

       //Get User Data;
       $Profile = "">
       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:
Notice: Undefined variable: logged_in in
\app\views\layouts\default.thtml on line 24




--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to