Welcome Guest, Not a member yet? Register   Sign In
__call function equivalent.
#1

[eluser]pegas[/eluser]
Hy.
I won't to know how to create a function equivalent to __call() from php. I don't want to implement _remap function because i have like 20 or more functions each with different number of parameters(I'm trying to avoid writing the redirections for all the functions as to only redirect de incorrect url's)

I've tried to put the _call function inside my controller like so :
Code:
function __call($function,$args){
//i want to redirect anything that is not valid to the  index method for example
$this->index();
}
Can anyone help ?


Messages In This Thread
__call function equivalent. - by El Forum - 06-18-2010, 05:21 AM
__call function equivalent. - by El Forum - 06-18-2010, 05:53 AM
__call function equivalent. - by El Forum - 06-18-2010, 06:26 AM
__call function equivalent. - by El Forum - 06-18-2010, 06:31 AM
__call function equivalent. - by El Forum - 06-18-2010, 06:46 AM
__call function equivalent. - by El Forum - 06-18-2010, 08:15 AM



Theme © iAndrew 2016 - Forum software by © MyBB