• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
remapping controllers' function calls: what about arguments?

#1
[eluser]Michael Ekoka[/eluser]
I'm experimenting with the controller's _remap() method that overrides a call to specific methods. In the user guide it states that
Quote:The overridden function call (typically the second segment of the URI) will be passed as a parameter the _remap() function
(User Guide : Controllers).

Code:
function _remap($method)
{
    if ($method == 'some_method')
    {
        $this->$method();
    }
    else
    {
        $this->default_method();
    }
}

Now, i would like to be able to call the original method with the arguments that were intended for it, but the guide doesn't mention anything about them.

Has anyone ever played with this?


Messages In This Thread
remapping controllers' function calls: what about arguments? - by El Forum - 10-23-2007, 11:02 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.