Welcome Guest, Not a member yet? Register   Sign In
uri->segment(0) return FALSE in _remap function
#1

[eluser]Zandy[/eluser]
Hi!

I'm trying to extract the parameters in the _remap function, but the function uri->segment(0) I always returns false.

Code:
<?php
class Prueba extends Controller
{
    function __construct(){ parent::Controller(); }
    
    function pru( $some ) { }
    
    function _remap( $method )
    {
        echo $this->uri->segment(0);
    }
}
?>

the url in browser is
http://localhost:8080/test/index.php/pru...eParameter


should return "someParameter" ??

greetings


Messages In This Thread
uri->segment(0) return FALSE in _remap function - by El Forum - 08-19-2008, 09:54 AM
uri->segment(0) return FALSE in _remap function - by El Forum - 08-19-2008, 10:51 AM
uri->segment(0) return FALSE in _remap function - by El Forum - 08-19-2008, 11:05 AM
uri->segment(0) return FALSE in _remap function - by El Forum - 08-19-2008, 04:38 PM
uri->segment(0) return FALSE in _remap function - by El Forum - 08-19-2008, 09:30 PM



Theme © iAndrew 2016 - Forum software by © MyBB