0
'items'모듈의 이름을 'products'로 변경하는 경로가 있으며 대부분의 경우 작동하지만 URL에 명시 적으로 설정된 컨트롤러 나 작업이없는 경우에는 작동하지 않습니다. 예를 들어 example.com/products
은 작동하지 않지만 example.com/items
은 example.com/products/index/index
과 같습니다. 어떤 아이디어를 고치거나 컨트롤러와 액션을 옵션으로 만들 수 있습니까?경로가있는 젠드 모듈의 이름 바꾸기
$router->addRoute('item-alias', new Zend_Controller_Router_Route('products/:controller/:action', array(
'module'=>'items'
)));
편집 : 내가
$router->addRoute('item-alias', new Zend_Controller_Router_Route('products/:controller/:action/*', array(
'module'=>'items'
'controller'=>'index',
'action'=>'index'
)));
'*'할 수 있습니다 추가 선택적 매개 변수가 추가되는, 예를 들어, 그것을 변경 할 때 작동하는 것 같다
example.com/products/index/index/page/2