컨트롤러가 두 개 있습니다 (IndexController.php
및 LoginController.php
). 로그인이 성공한 후 IndexController.php
으로 가야합니다. 그것은 잘 작동어떻게 다른 컨트롤러로 리디렉션 할 수 있습니까?
return $this->redirect()->toRoute(NULL , array(
'controller' => 'login',
'action' => 'home'
);
,하지만 난 쓸 때 : 내가 가진
'controller' => 'index', 'action' => 'index'
이 작동하지 않습니다.
NULL 값 대신 경로 이름을 지정해야합니다. – chaoss88