Re: Site wide variable.

2007-03-26 Thread BlenderStyle
To have a variable available in your views and elements try this in your controller (or AppController): function beforeRender() { $this->set('variable', 'whatever you want'); } In your views and elements you should be able to access $variable. On Mar 22, 9:36 pm, "dizz" <[EMAIL PROTECTED]> wr

Site wide variable.

2007-03-22 Thread dizz
Hello, I am trying to set a variable in my AppController to be accessed by all controllers. I have an element on all of my pages that displays last user logins. At first I was trying to use the User model in the AppController by using the $uses variable but for some reason the PageController was