run(); } catch (Exception $e) { $boot->log("[ERROR] Boot msg:" . $e->getMessage() . "\n" . $e->getTraceAsString()); $boot->appendErrorMessage($e->getMessage()); $view = BootstrapView::VIEW_ERROR; } switch ($view) { case BootstrapView::VIEW_REDIRECT: $bootView->redirectToInsaller(); break; case BootstrapView::VIEW_ERROR: $bootView->renderError(); break; case BootstrapView::VIEW_PASSWORD: $bootView->renderPassword(); break; } }