0
여기에 약간의 문제가 있습니다. 저는 현재 젠드 라우터 재 작성을 사용하기 위해 노력하고있어하지만 난이 오류가 발생했습니다 :Zend Framework - Param 지정되지 않았습니다.
이// BLOG -> CATEGORIES -> LIST ARTICLES
$route = new Zend_Controller_Router_Route(
'/blog/categories/:alias',
array(
'module' => 'blog',
'controller' => 'categories',
'action' => 'list'
)
);
$router->addRoute('blog-categories-list', $route);
내가 접근에 노력하고있어 URL은 다음과 같습니다 : /blog/categories/general/
Fatal error: Uncaught exception 'Zend_Controller_Router_Exception' with message 'alias is not specified'
가 여기에 경로에 대한 내 코드입니다.
왜이 오류가 발생합니까?
PS : 나는이 경로가 원인 내가 ':alias
의 기본 값을 지정하지 않았다
// BLOG -> CATEGORIES
$route = new Zend_Controller_Router_Route(
'blog/categories/',
array(
'module' => 'blog',
'controller' => 'categories',
'action' => 'index'
)
);
$router->addRoute('blog-categories', $route);