cakephp:$ this-> auth-> lose()和$ this-> auth-> auth-> lasteactions() - 我什么时候使用它们? [复制
-
27-09-2019 - |
题
可能的重复:
authComponent:允许的和允许()之间的差异?
使用该方法有什么区别
$this->Auth->allow()
并设置变量
$this->Auth->allowedActions ?
我找不到有关设置允许的数组的任何信息(我希望找到它)(http://book.cakephp.org/view/1251/setting-auth-component-variables) - 但它存在于API中 http://api13.cakephp.org/class/auth-component.
有人可以解释一下我应该使用哪种情况吗?
解决方案
不隶属于 StackOverflow