CakePHP 1.3에서 ACL을 단 한번도 사용하지 않고 2 주간의 격렬한 좌절로 CakePHP 2.0에서 여전히 작동하지 않습니다.CakePHP 2.0 : ACL이 작동하지 않습니다.
나는 Cake ACL 튜토리얼을 정확히 따라 왔지만 아무 일도 일어나지 않았다. 모든 Aros는 ACOS와 권한이 동일합니다.
이 모든 것 때문에 문제없이 모든 거부 된 작업을 입력 할 수 있습니다.
이로써 내 AppController가 내으로, beforeFilter에서
public $components = array('Acl','Auth'=> array(
'authenticate' => array(
'Actions',
'Form' => array(
'fields' => array('username' => 'email')
),
)
), 'Session', 'MathCaptcha', 'RequestHandler');
:
$this->Auth->actionPath = 'controllers';
$this->Auth->loginAction = array('controller' => 'users', 'action' => 'login');
$this->Auth->logoutRedirect = array('controller' => 'pages', 'action' => 'home');
$this->Auth->loginRedirect = array('controller' => 'users', 'action' => 'profile');
$this->Auth->allow('display');
은 누군가가 잘못되면 어떤 생각을 가지고있다. 감사!
답변에 대한 많은 감사 Colares는 Scott의 답변과 함께 작동하도록했습니다. – ChrisDK