开发者

CAKEPHP Auth component "The page is not redirecting properly"

开发者 https://www.devze.com 2023-03-04 23:06 出处:网络
I am integr开发者_Python百科ating CAKEPHP Auth component but \"The page isn\'t redirecting properly\"

I am integr开发者_Python百科ating CAKEPHP Auth component but "The page isn't redirecting properly"

any solution please . I used $this->Auth->allow(array('login')); in before filter


Try this:

function beforeFilter() {
    $this->Auth->allow('login');
}


With the Auth::allow() method, you simply put each action in as a function parameter rather than an array.

So for example:

$this->Auth->allow('login', 'view', 'index');
0

精彩评论

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