Routing - ignore first segment |
Jan,
I'm no expert but seems to me perhaps you cannot fudge or fake the actual Class you wish to call. I see nowhere in the routing documentation that you can substitute like this. As long as I specify an actual controller, I can play around with everything else: Code: $routes->add( '(:segment)/(:segment)/(:segment)/(:any)', 'Shipment::$2/$3/$4'); Routing Maybe Custom Placeholders? Seems like having a single route to rule them all may not be feasible, but I'll leave it to someone else to confirm that! Maybe start out with some ore basic routing, make sure everything is working as expected, then try to tweak as desired. "Premature optimization" is something I'm always reminding myself about. Good luck. |
Messages In This Thread |
Routing - ignore first segment - by Jan Zelenka - 07-15-2020, 03:52 AM
RE: Routing - ignore first segment - by abrar09 - 07-15-2020, 04:20 AM
RE: Routing - ignore first segment - by laynebay - 07-15-2020, 05:20 AM
RE: Routing - ignore first segment - by Jan Zelenka - 07-16-2020, 12:53 AM
RE: Routing - ignore first segment - by jreklund - 07-16-2020, 01:24 AM
RE: Routing - ignore first segment - by Jan Zelenka - 07-16-2020, 06:44 AM
RE: Routing - ignore first segment - by jreklund - 07-16-2020, 07:21 AM
RE: Routing - ignore first segment - by Jan Zelenka - 07-16-2020, 07:26 AM
RE: Routing - ignore first segment - by laynebay - 07-16-2020, 11:01 AM
RE: Routing - ignore first segment - by Jan Zelenka - 07-17-2020, 01:46 AM
RE: Routing - ignore first segment - by jreklund - 07-17-2020, 02:43 AM
|