public function delete() { try { $person = new Person($_GET['person_id']); $person->delete(); } catch (\Exception $e) { $_SESSION['errorMessages'][] = $e; } header('Location: ' . BASE_URL . '/people'); exit; }