Jump to content

Recommended Posts

Posted

 

Personally I'd use: 

if ($this->Html->ifSet($logged_in)) {

}else{

}

Thanks Mike

 

I put:

// Not logged in?
if (!$this->Html->ifSet($logged_in)) {
  // Send user to Login
  $this->requireLogin();
}

at the top of appropriate methods in each controller. Works fine.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
×
×
  • Create New...