$router->addRoute('routeName', new Zend_Controller_Router_Route(
'test/:category/', array(
'module' => 'default',
'controller' => 'test',
'action' => ':category'
)
));
그게 지금 내 코드예요. URL을 통해 지정된 매개 변수로 액션을 호출 할 수 있습니까? 예 : URL보기 이렇게 : domain.com/test/news/
그리고 지금은 테스트 컨트롤러에서 actionAction()을 호출하려고합니다. 위 코드를 사용하면 오류가 발생합니다. Action "category" does not exist and was not trapped in __call()
젠드 프레임 워크 - 경로 : 매개 변수로 호출 액션