나는 라우팅이있는 블로그가 있습니다. 내 ini에서 다음과 같이 보입니다.젠드 프레임 워크 추가 페이지 - 매개 변수가있는 라우팅
routes.quote.route = :id
routes.quote.defaults.module = default
routes.quote.defaults.controller = posts
routes.quote.defaults.action = single
routes.quote.reqs.id = \d+
이제는 (덧글에 대한) 페이지 매개 변수가 추가로 필요합니다. 나는 다음과 같은 단락 경로를 만들어야 만합니다 :
routes.quotePage.route = :id/page/:page
routes.quotePage.defaults.module = default
routes.quotePage.defaults.controller = posts
routes.quotePage.defaults.action = single
routes.quotePage.reqs.id = \d+
routes.quotePage.reqs.page = \d+
나는이 둘을 하나에 결합하고 싶습니다. 내가 어떻게 할 수 있니? 페이지 매개 변수는 추가로만 사용해야합니다.
은 다음과 같이 당신에게
'http : // domain.com/1/1'과'http : // domain.com/1/2' 만 일치시킵니다. –