1
내 부트 스트랩정적 경로에 대해 라우터 오류가 발생하는 이유는 무엇입니까?
public function initRoutes()
{
$router = new Zend_Controller_Router_Rewrite();
$route = new Zend_Controller_Router_Route_Static('register', array('module'=>'members','controller'=>'register','action'=>'index'));
$router->addRoute('register',$route);
}
을에 가지고 내가 http://domain.com/register
에 갈 때이 오류를 얻을 :
다음 오류가 발생했습니다 : 모듈/회원의
exception 'Zend_Controller_Dispatcher_Exception' with message 'Invalid controller specified (register)' in /var/www/html/beta/library/Zend/Controller/Dispatcher/Standard.php:241 Stack trace: #0 /var/www/html/beta/library/Zend/Controller/Front.php(936): Zend_Controller_Dispatcher_Standard->dispatch(Object(Zend_Controller_Request_Http), Object(Zend_Controller_Response_Http)) #1 /var/www/html/beta/application/bootstrap.php(24): Zend_Controller_Front->dispatch() #2 /var/www/html/beta/public/index.php(8): require_once('/var/www/html/b...') #3 {main}
/controllers 디렉토리에는 Members_RegisterController 클래스의 RegisterController.php가 있습니다.
나는 내가 뭘 잘못 확인, 내가 고정 경로에 대한 설명서를 참조하지 오전 이것이 당신이 라우터에 대한 경로를 추가하는 것처럼