On Nov 29, 2007 2:54 PM, skoggins <[EMAIL PROTECTED]> wrote:
>
> How do I set the $user variable in the app controller so it is
> accessible in other controllers ?
>
> Tried   $user = $this->User->findById($this->Session-
> >read('User.id'));   but that didn't work.

Config::write(...)

and then Config::read() to get that variable back.


-- 
Chris Hartjes

My motto for 2007:  "Just build it, damnit!"

@TheKeyboard - http://www.littlehart.net/atthekeyboard

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

Reply via email to