Welcome Guest, Not a member yet? Register   Sign In
Internationalization (i18n) library for CodeIgniter 2 problem with routing
#1

[eluser]Riley123[/eluser]
I have this in my routing and it works.

$route['page/(:any)'] = 'page/load/$1';

but when i use the i18n library it doesn't

the library tells me to add this to routes:

$route['^fr/(.+)$'] = "$1";
$route['^en/(.+)$'] = "$1";

// '/en' and '/fr' URIs -> use default controller
$route['^fr$'] = $route['default_controller'];
$route['^en$'] = $route['default_controller'];

which then screws up my page/any route.

I tried $route['(en|fr)/page/(:any)'] in my route and no success.

Anyone know what I'm doing wrong? I'm not a regex expert.







Theme © iAndrew 2016 - Forum software by © MyBB