Welcome Guest, Not a member yet? Register   Sign In
How to work with auto routing and languages in CI4?
#1

Hi, I've enabled auto routing ( https://codeigniter.com/user_guide/incom...g-improved ) in my CI4 project, and before start work with Localization ( https://codeigniter.com/user_guide/outgo...th-locales ) I was calling my controller method like this: http://mydomain.com/mycontroller/someaction , but now with Localization on, I'm using two languages: en, pt-BR. To call the same URL in the right way would be http://mydomain.com/pt-BR/mycontroller/someaction, but working with auto routing and Localization, this URI with "locale" (pt-BR or en) does not work. Did I forget something? What is the right way to work with Location + auto routing improved in CI4? Thanks.
Reply


Messages In This Thread
How to work with auto routing and languages in CI4? - by rodrigoguariento - 09-17-2022, 03:23 PM



Theme © iAndrew 2016 - Forum software by © MyBB