public function dispatch()
 {
     try {
         $this->initController();
         View::$controllerName = $this->controllerName;
         View::$actionName = $this->actionName;
         call_user_func_array([$this->controller, $this->actionName], $this->requestParams);
     } catch (ApplicationException $e) {
         $_SESSION["errors"] = $e->getMessage();
         Helpers::redirect("error");
     } catch (\Exception $e) {
         Helpers::redirect("error");
     }
     unset($_SESSION["errors"]);
     $_SESSION["binding-errors"] = [];
 }