How do you use AuthComponent and AclComponent to authenticate users? On app_controller.php,
put this code:
<?php
class AppController extends Controller {
var $components = array(‘Acl’,'Auth’,'Cookie’,'Session’);
function beforeFilter() {
$this->Auth->loginAction = ‘/users/login’;
$this->Auth->loginRedirect = ‘/questions/Various-Topics’;
$this->Auth->authorize = ‘actions’;
}
?>
and, on every controller, create a beforeFilter function and put this :
function beforeFilter() {
//var_dump($this->params);
this->Auth->allow(‘action1′,’action2′);
parent::beforeFilter();
}
//var_dump($this->params);
this->Auth->allow(‘action1′,’action2′);
parent::beforeFilter();
}
Note, however , since AuthComponent is authenticating users based on controller actions with Acl, you will have to build your own cake acl too.
PS. Thanks to ditchx and primerg for the help!