Welcome Guest, Not a member yet? Register   Sign In
How to use models in CI_Router? For dynamic multilanguage website.
#1

[eluser]Tottys Design[/eluser]
How to use models in CI_Router?
For dynamic multilanguage website.

ex: www.mysite.com/pt/meu-carro/ola

will take params

pt, meu-carro, ola

then converts this, loading data from a database, in the name of the controller and mehods:

pt, my-car, hy

Thanks very much!
#2

[eluser]eoinmcg[/eluser]
Take a look at
http://codeigniter.com/wiki/URI_Language_Identifier

I've just finished a project where it came in very handy.




Theme © iAndrew 2016 - Forum software by © MyBB