CakePHP: $this->Auth->allow() and $this->Auth->allowedActions() - when do I use them? [duplicate]

StackOverflow https://stackoverflow.com/questions/3838262

  •  27-09-2019
  •  | 
  •  

문제

Possible Duplicate:
AuthComponent: Difference between allowedActions and allow()?

What is the difference between using the method

$this->Auth->allow()

and setting the variable

$this->Auth->allowedActions ?

I can't find any information about setting the allowedActions array where I expected to find it (http://book.cakephp.org/view/1251/Setting-Auth-Component-Variables) - but it exists in the API at http://api13.cakephp.org/class/auth-component.

Can someone please explain which different circumstances I should use them?

도움이 되었습니까?
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top