Welcome Guest, Not a member yet? Register   Sign In
Routing dynamic controller with placeholder
#3

I came to this issue because of the language segment, according to Google SEO it's recommended to have this in the URL. I try to negotiate the language if none is defined and reload the page with the evaluated one. So the first segment is always the {local} segment.
Another solution would be to offset the auto-routing like this:

$routes->setAutoRoute(true, 1); \\ second parameter as the offset, first segment is ignored.

Would that be a better solution? Or is there another/better way without defining all routes?
Reply


Messages In This Thread
RE: Routing dynamic controller with placeholder - by timanon - 05-12-2020, 09:30 AM



Theme © iAndrew 2016 - Forum software by © MyBB