private function runController(): void
    {
        //get route information
        $action = $this->routeAction;
        $param = $this->routeParam;

        //action - call controller passing params
        if (!empty($param)) {
            \call_user_func_array([$this->controller, $action], $param);
            return;
        }

        //action - call controller
        if ($action) {
            \call_user_func([$this->controller, $action]);
        }
    }
private function runController(): void
    {
        //get route information
        $action = $this->routeAction;
        $param = $this->routeParam;

        //action - call controller passing params
        if (!empty($param)) {
            \call_user_func_array([$this->controller, $action], $param);
            return;
        }

        //action - call controller
        if ($action) {
            \call_user_func([$this->controller, $action]);
        }
    }
private function runController ( ) : void { //get route information $ action = $ this -> routeAction ; $ param = $ this -> routeParam ; //action - call controller passing params if ( ! empty ( $ param ) ) { \ call_user_func_array ( [ $ this -> controller , $ action ] , $ param ) ; return ; } //action - call controller if ( $ action ) { \ call_user_func ( [ $ this -> controller , $ action ] ) ; } }
Run controller.

@return void
Run controller .