Welcome Guest, Not a member yet? Register   Sign In
How to translate url
#1

Hi.



I am creating a web page where I have various controllers and functions in CI4. I need to be able to translate the url of each page in several languages.


I had thought of creating a table in the database with all the urls, in which language they are hosted and to which file (controller) to call. I don't know if it is the best solution, but I need to achieve it in a clean way.


This solution works for me but it can be long and tedious to maintain due to the number of urls and languages. Besides I also use a lot of ajax calls, and these don't need to be translated.


Can you help me by giving me examples or suggestions?


Thank you.
Reply


Messages In This Thread
How to translate url - by daniel89fg - 09-08-2020, 02:10 AM
RE: How to translate url - by Gary - 09-12-2020, 08:42 AM
RE: How to translate url - by daniel89fg - 09-12-2020, 02:09 PM
RE: How to translate url - by Gary - 09-13-2020, 01:42 PM



Theme © iAndrew 2016 - Forum software by © MyBB