Welcome Guest, Not a member yet? Register   Sign In
functions are not seeing uri segments
#6

[eluser]pransome[/eluser]
I set $config['uri_protocol'] = "REQUEST_URI"; (have tried all the options here)
and when I browse to "http://localhost:8888/RC/index.php/password/test/index"
with the Controller code below I see:

--- segmentOne:

So somehow the segments are getting lost.

Controller code:

<?php

class Password extends Controller {
function index() {
//echo 'Password';
}

function test() {
echo uri_string();
echo ' --- ';
$segmentOne = $this->uri->segment(1);
echo 'segmentOne: '.$segmentOne;
//echo ' --- ';
//echo $_SERVER['REQUEST_URI'];
}
}


Messages In This Thread
functions are not seeing uri segments - by El Forum - 08-15-2010, 10:13 PM
functions are not seeing uri segments - by El Forum - 08-16-2010, 12:07 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 10:17 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 10:51 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 10:51 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 11:13 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 11:14 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 11:33 AM
functions are not seeing uri segments - by El Forum - 08-16-2010, 12:47 PM
functions are not seeing uri segments - by El Forum - 08-17-2010, 06:22 PM



Theme © iAndrew 2016 - Forum software by © MyBB