routes bug ? |
[eluser]EugeneS[/eluser]
in routes.php i have: Code: $route['contacts'] = 'welcome/index/2'; then i go to the url like: http://localhost/contacts yes i'm in the class "welcome" method "index" but when i'm trying to access url segments it doesnt work: Code: echo $page_id = $this->uri->segment(1, 1); i was thinking it should be Code: echo $page_id = $this->uri->segment(1, 1); my expectations are wrong or its bug ?
[eluser]frenzal[/eluser]
if you want the rerouted segments use uri->rsegment
[eluser]EugeneS[/eluser]
[quote author="frenzal" date="1206335661"]if you want the rerouted segments use uri->rsegment[/quote] ouch ! thanks ... its time to get some rest |
Welcome Guest, Not a member yet? Register Sign In |