Welcome Guest, Not a member yet? Register   Sign In
Routing - ignore first segment
#1

Hi all!
I'm cracking my head over this but can't figure it out. I'm trying have the controller being specified in the second segment of the url.
So for instance http://site.eu/code/object/method... would end up invoking Object::method.

Obviously, I can manually list all my controllers and methods but I was hoping I could achieve this with just one routing instruction.
Thanks in advance for any ideas.
Reply


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 jreklund - 07-16-2020, 01:24 AM
RE: Routing - ignore first segment - by jreklund - 07-16-2020, 07:21 AM
RE: Routing - ignore first segment - by laynebay - 07-16-2020, 11:01 AM
RE: Routing - ignore first segment - by jreklund - 07-17-2020, 02:43 AM



Theme © iAndrew 2016 - Forum software by © MyBB