我收到此错误
Call to undefined method SecurityComponent::allowedActions()
当我尝试在这样的控制器中允许 singup 操作时
public function beforeFilter() {
parent::beforeFilter();
$this->Security->allowedActions(array('sign-up'));
$this->Auth->allow('login','signup','index','activate','logout','forgot','reset','display');
if($this->Auth->user('id')) {
$this->set('logged_in', true);
} else {
$this->set('logged_in', false);
}
}
public $components = array('RequestHandler');
如果我删除
$this->Security->allowedActions(array('sign-up'));
当我提交注册表时,它显示您的请求已被黑洞