CodeIgniter Forums
Route names from database & i18n - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5)
+--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24)
+--- Thread: Route names from database & i18n (/showthread.php?tid=62057)



Route names from database & i18n - tud - 06-05-2015

Hello,

I need to implement a route system which takes route names from database and it's i18n compliant

example:
site.example/en/articles/1 and site.example/es/articulos/1 and site.example/it/articoli/1 should use the same controller

I'm using codeigniter 2.x

do you have any suggestion and/or advise?

Thanks
.Stefano


RE: Route names from database & i18n - mwhitney - 06-05-2015

There are many different ways that this can be done, but my first suggestion would be to use CI 3.x instead of 2.x, if possible, because 2.x is only receiving security updates through the end of October.

If you search the forum for "internationalization", you'll find a few threads with some ideas and even some links to projects which might help with this.