Language Selection 2 mod - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Language Selection 2 mod (/showthread.php?tid=16154) |
Language Selection 2 mod - El Forum - 02-25-2009 [eluser]dtoolbox[/eluser] http://codeigniter.com/wiki/Language_Selection_2/ the demo shows http://lang_select.blochberger.us/index.php/welcome/index/l_de i’m a newbie in CI, my question is how to: 1. remove /index.php/ in the url_helper so it makes the link of selection to http://lang_select.blochberger.us/en/welcome/ 2. remove the suffix l_ on each lang selection making it specific to en/de/fr/it etc. hope someone share some enlightenment Language Selection 2 mod - El Forum - 02-26-2009 [eluser]TheFuzzy0ne[/eluser] [quote author="dtoolbox" date="1235642038"] 1. remove /index.php/ in the url_helper so it makes the link of selection to http://lang_select.blochberger.us/en/welcome/ [/quote] You can use an .htaccess file. http://codeigniter.com/wiki/mod_rewrite/ [quote author="dtoolbox" date="1235642038"] 2. remove the suffix l_ on each lang selection making it specific to en/de/fr/it etc. [/quote] You could either use your .htaccess file, or perhaps use a route. http://ellislab.com/codeigniter/user-guide/general/routing.html |