0
에 로그인 한 후 의도 한 페이지로 리디렉션 로그인 한 후 해당 페이지로 리디렉션됩니다.의 CakePHP 자동 CakePHP의에서
저는 jQuery Mobile과 Cakephp 프레임 워크를 함께 사용하고 있습니다.
public function login(){
$this->layout = 'jquery-mobile';
if ($this->request->is('post')) {
if ($this->Auth->login()) {
return $this->redirect($this->Auth->redirect());
} else {
$this->Session->setFlash(__('Username or password is incorrect'), 'default', array(), 'auth');
}
}
}
위의 기능은 때때로 작동하는 것처럼 보이지만 항상 그렇지는 않습니다.
항상 일어날 수있는 조치가 있습니까?
시도? –