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

[eluser]Pades[/eluser]
Hi. I have URI Language Identifier on my website. 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. Thank you for reply
#2

[eluser]skunkbad[/eluser]
You will find that it is much easier to implement a language identifier as a subdomain than a URI segment. If you set up your subdomains to point to the same location as your standard domain, all you have to do is verify the language based on the domain. Routing and URI segments are not affected.
#3

[eluser]CroNiX[/eluser]
What does your url structure look like and are you using routes?
#4

[eluser]Pades[/eluser]
This is my routes but I dont know to fix it. Please help me
Code:
$route['default_controller'] = "page";
$route['404_override'] = '';
$route['(\w{2})/(.*)'] = '$2';
$route['(\w{2})'] = $route['default_controller'];




Theme © iAndrew 2016 - Forum software by © MyBB