I have URI Language Identifier on my website I did it according to directions on codeigniter WIKI. It works fine. 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'];
Thank you for reply.
refers the ist parameter after your base_url()
For example
URL
http://localhost/site/controller/methodNow check the below case also
URL
http://testsite/test/site/controller/method