El Forum
09-16-2009, 07:00 AM
[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 :
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
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