No segments found using uri class... |
[eluser]Unknown[/eluser]
When I tried to retrieve any segment of the uri, using $this->uri->segment(2), I get none. Also, the uri segments array is empty. Could it be it has something to do with the url? I work local: http://localhost/eclipse/codeigniter/ind.../parameter But when I make a function named like the parameter, he does run that function. And still the uri segments array is empty. Any ideas how this could be solved? This is the code: Code: <?php And this is the return for http://localhost/eclipse/codeigniter/ind...parameter/: Code: Array
[eluser]Unknown[/eluser]
Solved! %-P I'd placed 'uri' in the libraries autoload array. But Codeigniter loads it anyways. Loading it twice caused the problem.
[eluser]Las3r[/eluser]
Yea you saved me loads of time here, thanks for that! I spent 30 minutes trying to find out why it wouldnt retrieve my segments... Thanks a lot Doudi |
Welcome Guest, Not a member yet? Register Sign In |