![]() |
URI Language Identifier and CI 1.6.1 - 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: URI Language Identifier and CI 1.6.1 (/showthread.php?tid=7989) |
URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]Gewa[/eluser] HI. I tried to fight with your URI langage identifier, but he wins. Please help me ![]() I put CI 1.6.1 my routs file contain only Code: $route['default_controller'] = "welcome"; my config.php contain Code: $config['language'] = "ru"; and i have the MY_Language.php in the folder libraries... Beside that I have htaccess , that removes the index.php Code: RewriteEngine on but in Code: class Welcome extends Controller { WHATEVER You change the url, for example mysite.com/en it shows "ru" what is the problem???? URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]wiredesignz[/eluser] Please don't private message me to get an answer again. I visit the forums regularly and will see your post. Your config for language is incorrect. Code: //default language URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]Gewa[/eluser] I changed to the code, you gave. The same result... URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]wiredesignz[/eluser] It works for me, please check your code again. URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]Gewa[/eluser] can it be from Register Globals or other issue? URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]wiredesignz[/eluser] Probably `other issue`. URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]Gewa[/eluser] I need just to put library in /system/libraries , or also to make some load function? Maybe this is , that issue? I just copy and paste this into /system/libraries as MY_Language.php Code: <?php if (!defined('BASEPATH')) exit('No direct script access allowed'); URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]wiredesignz[/eluser] application/libraries NOT system/libraries Read the User Guide! and the wiki article!! URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]xwero[/eluser] wiredesignz is his merry self again ![]() URI Language Identifier and CI 1.6.1 - El Forum - 04-30-2008 [eluser]wiredesignz[/eluser] *bows* :lol: An occasional `thank you for helping` would be nice too. |