Example #1
0
 public function index()
 {
     if (!AuthenticationUtils::isAuthenticated()) {
         $this->redirect("Authentication", "showLogin");
     }
     $this->view->render(explode("\\", get_class($this))[1], "index", null, $this->getErrores());
 }
 public function logout()
 {
     AuthenticationUtils::logout();
     header('Location: ' . URL_BASE . "/index.php/Authentication/showLogin");
     exit;
 }