I'm writing my own MVC framework, and i need to call static function
I have routing defined in ini file like this
[someAction]
route[] = /someroute
layout = layoutname
action[] = someAction@SomeController
after matching routing im using explode() function to split action and controller
$action = explode('@', $this->_action);
//$this->_action = someAction@SomeController
and now I wanna call
$action[1]::$action[0]();
But php thinks that I wanna call static field instead of method, can somebody tell me how to call it as method ?
call_user_func()$a = new $action[1](); $a->$action[0]();forward_static_callphp.net/manual/en/function.forward-static-call.php orcall_user_funcphp.net/manual/en/function.call-user-func.php I'm sure you'd find your answer in any one of these functions.$action()eval.in/181257