but specific sections will display different elements based on logged in or
not.
So $this->Session->check($key) lets me know if logged in or not but what
would be the easiest way to set a global logged in var rather than
$active = $this->Session->check($key) ;
If($active){
} else {
}
In essence get rid of the $active = $this->Session->check($key) ; all over
the place.
Tried setting $this->set('active', 1); in function isAuthorized() { but get
undefined active in the view..
Thanks all,
K
--
Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org
Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions.
To unsubscribe from this group, send email to
cake-php+unsubscribe@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment