Re: problem checking if user is logged in from any controller other than users

2011-03-15 Thread Zaky Katalan-Ezra
in your app_controller beforeFilter add this line: $this->set('loginuser',$this->Auth->user()); In any view or layout you can check for $loginuser. -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.o

Re: problem checking if user is logged in from any controller other than users

2011-03-15 Thread cricket
On Tue, Mar 15, 2011 at 3:07 PM, Eugene wrote: > I have ajax log in on my website. I have a login form element that > displays either a login form or a link to profile page depending  if > user is logged in or not. > > If i log in and got to profile page which is in users controller then > it work

problem checking if user is logged in from any controller other than users

2011-03-15 Thread Eugene
I have ajax log in on my website. I have a login form element that displays either a login form or a link to profile page depending if user is logged in or not. If i log in and got to profile page which is in users controller then it works fine but on all the other pages user is not logged in and