$controller->$method($this->params);
ok the problem is that my $this->params is an array, is there something in php that can we do so it will be like
$controller->$method($params1,$params2,$untilllastparams); ?
thanks for looking in
Adam Ramadhan
You are looking for call_user_func_array(). In your example this would look like:
http://php.net/manual/en/function.call-user-func-array.php