public function index()
 {
     if (!AuthenticationUtils::isAuthenticated()) {
         $this->redirect("Authentication", "showLogin");
     }
     $this->view->render(explode("\\", get_class($this))[1], "index", null, $this->getErrores());
 }
 public function showLogin()
 {
     try {
         if (AuthenticationUtils::isAuthenticated()) {
             header('Location: ' . URL_BASE . "/index.php/Index/index");
             exit;
         } else {
             $a = explode("\\", get_class($this))[1];
             $this->view->render($a, "showLogin", null, $this->getErrores());
         }
     } catch (\Exception $e) {
         View::renderErrors(array($e->getMessage()));
     }
 }