开发者

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

开发者 https://www.devze.com 2023-01-18 20:38 出处:网络
This question already has answers here: Closed 10 years ago. Possible Duplicate: AuthComponent: Difference between allowedActions and allow()?
This question already has answers here: Closed 10 years ago.

Possible Duplicate:

AuthComponent: Difference between allowedActions and allow()?

What is the difference between using the method

$this->Auth->allow()

and setting the variable

$th开发者_运维知识库is->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?


See this AuthComponent: Difference between allowedActions and allow()?

0

精彩评论

暂无评论...
验证码 换一张
取 消