Welcome Guest, Not a member yet? Register   Sign In
Not compatible ? : "_remap" function and "Passing URI Segments to your Functions"
#1

[eluser]Solito[/eluser]
Hello,


I would like to use remap function but it annihilates the possibility to passing URI segments to my function.

Here is a simple example :

Code:
function _remap($methode)
{
    $this->$methode) ;
}
    
function test($var1='',$var2='')
{
    echo "var1 = $var1<br/>var2 = $var2" ;
}

If you comment the function _remap to disable it, it works :
- http://example.com/controller/test/shoes/02 <- this url allows you to pass segments 3 et 4 to your function

When you uncomment the function _remap, segments 2 and 3 cannot be no more atribued automatically to my function.


Have any idea why _remap acts like this ?


Solito


Messages In This Thread
Not compatible ? : &quot;_remap&quot; function and &quot;Passing URI Segments to your Functions&quot; - by El Forum - 09-16-2009, 07:00 AM



Theme © iAndrew 2016 - Forum software by © MyBB