예제 #1
0
 public function execute()
 {
     if (!Session::has('user')) {
         $this->template->setHeaderLogin('login', __DIR__);
     }
     $this->template->setBody('Home/Views/home');
     $this->template->render();
 }
예제 #2
0
 public function execute()
 {
     if (Session::has('username')) {
         $this->response->redirect('/');
     }
     $this->template->setBody('User/Views/login');
     $this->template->render();
 }
예제 #3
0
 /**
  * @return mixed
  */
 public static function getMessage()
 {
     if (!Session::has('message')) {
         return false;
     }
     $message = Session::get('message');
     Session::delete('message');
     return $message;
 }