/**
  * Add a new person.
  */
 public function actionAdd()
 {
     if ($_SERVER['REQUEST_METHOD'] == 'POST') {
         //            foreach ($_POST as $value) {
         //                if (!$value) {
         //                    $_SESSION['error'] = 'Fill all the fields!';
         //                    $this->render('form_add');
         //                    exit();
         //                }
         //            }
         $this->model->firstName = htmlspecialchars($_POST['firstname']);
         $this->model->lastName = htmlspecialchars($_POST['lastname']);
         $this->model->email = htmlspecialchars($_POST['email']);
         $result = $this->model->addPerson();
         header('Location: /');
     }
     $this->render('form_add');
 }