Welcome Guest, Not a member yet? Register   Sign In
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



Theme © iAndrew 2016 - Forum software by © MyBB