i have 3 controllers: userscontroller, frontpagescontroller & blogscontroller with methods: add, edit ,delete and index for all.And login , logout methods for only userscontroller. In appcontroller :
function beforeFilter() {
$this->Auth->allowedActions = array('display');
$this->Auth->actionPath = 'controllers/';
$this->Auth->authorize = array('controllers');
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->logoutRedirect = array('controller' => 'users', 'action' => 'login');
$this->Auth->loginRedirect = array('controller' => 'blogs', 'action' => 'index');
}
how to only frontpagescontroller for users and guest ? and another controller for users logged