consider this simple scenario:
$this->method($arg1, $arg2);
Solution:
call_user_func_array(array($this,\'method\'), array($a
This should work:
call_user_func_array(array($this->object,'method'), array($arg1, $arg2));
The first argument is a callback type, containing an object reference and a method name.
Here's a hackish variant, might be useful to someone:
$method_name_as_string = 'method_name';
$this->$method_name_as_string($arg1, $arg2);
This uses the PHP variable-variables. Ugly as hell, but not particularly uglier than the others...