I set a variable in app_controller.  Now I want to use that variable in
another controller.  How?

I tried lots of variations, such as the $this-> thingy, gobal,
$GLOBALS[''], set(), var, etc

This is the variable i want available to all controllers and views:
$ses = $this->Session->read('User');

When I do this, all I have to do is $ses['id'] instead of typing all of
that.

Or should I just continue defining that over and over?  Or is there a
better method?


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