private function renderView($data)
 {
     if (!isset($data["view"])) {
         $data["view"] = "index";
     }
     $theme = "default";
     $view_name = $data["view"] . ".phtml";
     $view_page = APP_ROOT . "/theme/{$theme}/" . $view_name;
     $viewModel = ViewModel::fromArray($data);
     if (file_exists($view_page)) {
         logger::info("render page: {$view_page}");
         require $view_page;
     } else {
         throw new Exception("{$view_page}  > not found!");
     }
 }