Welcome Guest, Not a member yet? Register   Sign In
Problem with routes and URI

Hi. I have URI Language Identifier on my website I did it according to directions on codeigniter WIKI. It works fine but after that my segments changed. But How Can I get name of controller because $this->uri->segment(2) = id and $this->uri->segment(1) = name of the metod.

This is my routes.php

$route['default_controller'] = "page";
$route['404_override'] = '';
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];

Thanks for reply.

Messages In This Thread
Problem with routes and URI - by El Forum - 07-26-2012, 05:54 AM

Theme © iAndrew 2016 - Forum software by © MyBB