zendframework / zend-router

Standalone routing implementation for HTTP and console requests
BSD 3-Clause "New" or "Revised" License
32 stars 20 forks source link

Advanced Routing #52

Closed kevspadillo closed 6 years ago

kevspadillo commented 6 years ago

I want to achieve this routing.

I want to achieve this kind of routing:

ParentRouteController GET domain.com/parent-route GET domain.com/parent-route/:value POST domain.com/parent-route UPDATE domain.com/parent-route/:value

ChildRoute1Controller GET domain.com/parent-route/:value/child-route-1 GET domain.com/parent-route/:value/child-route-1/:child1value POST domain.com/parent-route/:value/child-route-1 UPDATE domain.com/parent-route/:value/child-route-1/:child1value

ChildRoute2Controller GET domain.com/parent-route/:value/child-route-1/:child1value/child-route-2 GET domain.com/parent-route/:value/child-route-1/:child1value/child-route-2/:childRoute2Value POST domain.com/parent-route/:value/child-route-1/:child1value/child-route-2 UPDATE domain.com/parent-route/:value/child-route-1/:child1value/child-route-2/:childRoute2Value

I'm using ZF 2.5.2, thanks!

froschdesign commented 6 years ago

For questions, please use one of the following locations, and not the issue tracker:

Ocramius commented 6 years ago

Just cross-linking https://discourse.zendframework.com/t/advanced-routing/790/2