2012-03-01 2 views
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'); 
      } 
     } 
    } 

위의 기능은 때때로 작동하는 것처럼 보이지만 항상 그렇지는 않습니다.

항상 일어날 수있는 조치가 있습니까?

+0

시도? –

답변

0

로그인 페이지 컨트롤러에 succesfull 로그인 후

때 무엇을이 작동하지 않는 일이 발생

// Render the element in /homepage.ctp 
    $this->render('homepage'); 
관련 문제