![]() |
18n problemm with paramaters - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22) +--- Thread: 18n problemm with paramaters (/showthread.php?tid=60953) |
18n problemm with paramaters - El Forum - 08-09-2014 [eluser]Unknown[/eluser] I have integrated in my project Internationalization (i18n) library, and I have some problems with Ist an second segments. I have routes: Code: $route['^(en|ru)/services'] = 'services'; Code: public function showcat($idCat, $idart = '') { if I add in array controller services to not localized // special URIs (not localized) var $special = array ( "dashboard", "settings", "services" ); in class MY_Lang then i get good parameters get idCat = private_service and idart = 3 To get my parameters I need to ad in routes 3rd params Code: $route['^(en|ru)/services/(:any)/(:any)/(:any)'] = 'services/showcat/$1/$2/$3'; Code: //url is site.pc/en/services/private_service/3/anyvars 18n problemm with paramaters - El Forum - 08-12-2014 [eluser]Unknown[/eluser] I fix it! Problem is in routs Code: $route['^(en|ru)/services/(:any)'] = 'services/showcat/$1'; Code: $route['^(en|ru)/services/(:any)'] = 'services/showcat/$2'; |