functions are not seeing uri segments |
[eluser]pransome[/eluser]
I have a function and I want to use one of the uri segments in the function. The function is not seeing any of the uri segments. Just to test this I made a simple function in a controller that looks like ... function test() { $segmentOne = $this->uri->segment(1); echo 'segmentOne: '.$segmentOne; } All that gets rendered is "segmentOne:". I know that using echo directly in a controller is bad practice - I am just trying to figure out why the controller functions don't see any uri segments. If I try to use current_url() from the url helper I see the site base url, but no segments. The url I am using to browse to the function above is http://localhost:8888/RC/index.php/password/test/index - using MAMP Can anyone help me figure out why I see no segments? |
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
|