/**
  * Edit an existing person.
  */
 public function actionEdit()
 {
     $personID = (int) $_GET['id'];
     $person = $this->model->getPersonByID($personID);
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         $result = $this->model->editPerson($personID, $_POST);
         header('Location: /');
     }
     $this->render('form_edit', ['person' => $person]);
 }