if (class_exists($controller)) {
$obj = new $controller;
}
if ( method_exists($obj, $this->action) ) {
if ( empty($this->params) ) {
call_user_func( [$obj, $this->action] );
} elseif ( !call_user_func_array(array($obj, $this->action), $this->params) ) {
$this->notFound();
}
} else {
$this->notFound();
}