Welcome Guest, Not a member yet? Register   Sign In
Language-based SEF URL`s
#1

[eluser]harfaspaul[/eluser]
My first post here, so a big hello goes to everyone.

I`m working on a website using CI, and I want to implement Language-based SEF URL`s. I`m already using the URL language identification library, so at the moment the URL`s look like this : http://<host>/<language>/<class>/<function>
There will be 3 languages for the user to choose from : English, Romanian and Hungarian (en, ro, hu - in the URL). What I`d like to do is have the class and function names change depending on the active language, but still keep it all in just 1 file (1 controller) rather than having different controllers for each language...
Ex : English : http://<host>/en/about/history
Romanian : http://<host>/ro/despre/istoric

My question is if there`s any way to do this, except the obvious .htaccess or routes.php? Based on info stored in the DB maybe?

Thanks for your help.
Paul.


Messages In This Thread
Language-based SEF URL`s - by El Forum - 07-27-2008, 02:45 AM
Language-based SEF URL`s - by El Forum - 07-27-2008, 04:39 AM
Language-based SEF URL`s - by El Forum - 07-27-2008, 05:57 AM
Language-based SEF URL`s - by El Forum - 07-27-2008, 07:53 AM
Language-based SEF URL`s - by El Forum - 07-27-2008, 08:15 AM
Language-based SEF URL`s - by El Forum - 07-28-2008, 09:25 AM
Language-based SEF URL`s - by El Forum - 07-28-2008, 09:56 AM
Language-based SEF URL`s - by El Forum - 08-11-2008, 02:41 PM
Language-based SEF URL`s - by El Forum - 08-12-2008, 08:34 AM



Theme © iAndrew 2016 - Forum software by © MyBB