Hello Readers, if you are looking for a condition to check whether a user is logged-In or not from view, you can use the following code:-
if ($this->Session->read('Auth.User')){
// you can put your condition here
}
In cakephp just after the logging, username is saved so you can write the if statement and put your condition.
0 Comment(s)