Welcome Guest, Not a member yet? Register   Sign In
URI class fails
#3

[eluser]ivo_shandor[/eluser]
Thanks Brian. I've definitely loaded the helper so that's not the problem. Since my previous post I've tried changing the URI_PROTOCOL settings in the config.php file and the best outcome has been with the PATH_INFO setting. Now base_url() and a couple of other functions have begun working but I have problems with uri_string() and others.

To illustrate my problem, I have created a view with the following commands:
Code:
<?php echo(current_url()); ?> // produces 'http://localhost/ci/index.php'
<?php echo($this->uri->segment(1)); ?> // produces no output at all
<?php echo $_SERVER['PATH_INFO']; ?> // produces '/agent/profile/1'

All this is given in the view with "http://localhost/ci/index.php/agent/profile/1" in the browser address bar. As you can see uri->segment(n) doesn't seem to be working and the current_url seems to be wrong.

I hope this is clear enough. I've spent several hours looking at this and my brain feels fried...


Messages In This Thread
URI class fails - by El Forum - 11-10-2009, 01:45 PM
URI class fails - by El Forum - 11-10-2009, 05:26 PM
URI class fails - by El Forum - 11-10-2009, 06:03 PM
URI class fails - by El Forum - 11-11-2009, 05:48 AM



Theme © iAndrew 2016 - Forum software by © MyBB