Welcome Guest, Not a member yet? Register   Sign In
CI 2.1 + Modular Extensions + Ion Auth + multilingual ci_i18n_library
#1

[eluser]Unknown[/eluser]
Hi guys im trying to setup a new website with backend login area using the following:
CI 2.1 + Modular Extensions 5.4 + Ion Auth 2 + multilingual

I have a problem to configure the multilingual with the Ion auth. When I try to enter the default controller url (home) wihtout login it should redirect to the auth/login but with language in the url like: en/auth/login

But the page keeps doing redirection and nothing happens, i think its a problem with my routes.php config file. Here's what i have in that file:
Code:
$route['default_controller'] = "home";
$route['404_override'] = '';


// example: '/en/about' -> use controller 'about'
$route['^fr/(.+)$'] = "$1";
$route['^en/(.+)$'] = "$1";
$route['^es/(.+)$'] = "$1";

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

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

I have struggling my head for over a week now and getting more and more desperate lol, any help is highly appreciated, many thanks in advance!!




Theme © iAndrew 2016 - Forum software by © MyBB