Beispiel #1
0
 public function action_logout()
 {
     $this->template->title = 'Payroll » Login';
     if (Session::get('user') !== NULL) {
         parent::logout_user();
         Session::set_flash('success', 'You have successfully logged out!');
         $this->template->content = View::forge('login/logout');
     } else {
         Response::redirect('login/login');
     }
 }