开发者

CAKEPHP Auth component "The page is not 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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜