localhost and $this->uri->segment() |
[eluser]matt2012[/eluser]
Im having problems with getting $this->uri->segment() to work on localhost if I have this address below http://localhost/seg1/seg2/seg3 I get these results, Code: $this->uri->segment(1) -> '' only $this->uri->rsegment(1) is as expected has anyone got the answer to this?
[eluser]frenzal[/eluser]
is your index.php on http://localhost/index.php or is it in http://localhost/seg1/seg2/seg3/index.php ?
[eluser]matt2012[/eluser]
http://localhost/index.php ive noticed there are some options for $config['uri_protocol'] = "AUTO"; so i will dig into this..
[eluser]xwero[/eluser]
What do you get when you do Code: print_r($this->uri->segments);
[eluser]xwero[/eluser]
I guess you remove the index.php with .htaccess, right? Which controller are you using to check the segments?
[eluser]matt2012[/eluser]
thanks xwero - I hadnt enabled mod-rewrite in xampp !! your post got me thinking in the right direction. Cheers. :-) |
Welcome Guest, Not a member yet? Register Sign In |