Exemplo n.º 1
0
 public function deleteUserAction(int $id)
 {
     if (Gatekeeper::deleteUserById($id)) {
         $this->flasher->success('User deleted');
     } else {
         $this->flasher->error('User not deleted.');
         if ($this->site['debug']) {
             $this->flasher->error(Gatekeeper::getLastError());
         }
     }
     $this->redirect('/users');
 }