Welcome Guest, Not a member yet? Register   Sign In
HMVC and URI Language Identifier help
#1

[eluser]Unknown[/eluser]
i am using two libraries, both by wiredesignz

HMVC: http://codeigniter.com/wiki/Modular_Extensions_-_HMVC

URI Language Identifier: http://codeigniter.com/wiki/URI_Language_Identifier

i have my admin controllers in a folder named admin and rest in a folder named public. but when i am trying to access url by typing

http://localhost/ci_2/admin , it just redirects to http://localhost/ci_2/en/admin
http://localhost/ci_2/, it just redirects to http://localhost/ci_2/en/public

and i am error message "The page you requested was not found."

I am guessing that my router config is not correct. Here are all my variables in application/router.php

$route['default_controller'] = "welcome";
$route['404_override'] = '';
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];
$route['admin'] ='admin/login';
$route['^.{2}$/public']='public/welcome';

Also is it possible that i can set different default languages for admin and public folders?


Thanks




Theme © iAndrew 2016 - Forum software by © MyBB