need help with multilanguage and routes |
[eluser]a.j.[/eluser]
Hi, I have a problem: there's a multilingual website for which I use CodeIgniter 1.7.3 and Internationalization (i18n) library for CodeIgniter. Here is my controler: Code: <?php mysite/fr/news - I get news list, it's ok mysite/fr/news/show_single/seo-subject-of-content - I get single content, it's ok but is it possible to hide name of function 'show_single' and make uri like this? mysite/fr/news/seo-subject-of-content mysite/en/news/seo-subject-of-content Without multilanguage library it would be easy: config/routes.php: Code: $route['news/(:any)'] = 'news/show_single/$1/'; But this way is not proper while according to multilanguage library I have to use URI routing like this: Code: $route['default_controller'] = news; Could you help me? I didn't find any solutions in forum. Or should I look for other multilanguage libraries? Please share with your experience. Thanks in advance. |
Welcome Guest, Not a member yet? Register Sign In |