Exemplo n.º 1
0
 public function showNewAbsence($team, $event)
 {
     if ($event != null) {
         $event = Flight::events()->getEventWithId($event);
     }
     $team = Flight::teams()->getTeamWithId($team);
     Flight::util()->render('newAbsence', array('team' => $team, 'event' => $event));
 }
Exemplo n.º 2
0
 public function deleteEvent($id)
 {
     Flight::auth()->check();
     $event = Flight::events()->getEventWithId($id);
     $team_id = $event->team;
     $event->delete();
     Flight::redirect("/team/" . $team_id);
 }