0
URL에 값을 저장하는 경로를 설정해야한다는 내용을 읽었습니다. 즉, application.ini 예는 zendframework 참조 가이드에서 보여 것 :Zend Paginator and Routes
routes.example.route = articles/:articleName/:page
routes.example.defaults.controller = articles
routes.example.defaults.action = view
routes.example.defaults.page = 1
routes.example.reqs.articleName = \w+
routes.example.reqs.page = \d+
가 어떻게 위의 설정으로 개체를 인스턴스화 내 부트 스트랩에서 사용할 수 있을까? 예 : I 냈
$route = new Zend_Controller_Router_Route(
'product/:id',
array(
'module' => 'default',
'controller' => 'product',
'action' => 'detail',
),
);
$router->addRoute('product', $route);
정말 페이징 작업자에게는이 구성이 필요하지 않습니다. 어쨌든 대답을 얻으려면보다 구체적이어야합니다. –
@ aurelio-de-rosa 부트 스트랩에서 내 경로를 구성했지만 다른 장소에 경로를 삽입하는 것을 망치지 않습니다. – dextervip