public function testSetPerson()
 {
     $person = new Person();
     $person->setFname("Ailene");
     $person->setLname("Pequit");
     $person->setMname("Pagaran");
     $person->setBirthdate("1995-02-09");
     $person->setStreetAddress("P-6");
     $person->setCity("Cabadbaran City");
     $person->setProvince("Agusan del Norte");
     $person->setCountry("Philippines");
     $person->setZipcode("8600");
     $person->setReligion("Aglipayan");
     $person->setGender("Female");
     $person->setMobile("09184194833");
     $person->setPhone("None");
     echo "\n" . $person->getFullName() . "\n";
     echo $person->getFname() . "\n";
     echo $person->getMname() . "\n";
     echo $person->getLname() . "\n";
     echo $person->getBirthdate() . "\n";
     echo $person->getFullAddress() . "\n";
     echo $person->getStreetAddress() . "\n";
     echo $person->getCity() . "\n";
     echo $person->getProvince() . "\n";
     echo $person->getCountry() . "\n";
     echo $person->getZipcode() . "\n";
     echo $person->getReligion() . "\n";
     echo $person->getGender() . "\n";
     echo $person->getMobile() . "\n";
     echo $person->getPhone() . "\n";
     $this->assertTrue(true);
 }
 /**
  * Creates a new Person model.
  * If creation is successful, the browser will be redirected to the 'view' page.
  * @return mixed
  */
 public function actionCreate()
 {
     $model = new Person();
     if ($model->load(Yii::$app->request->post()) && $model->save()) {
         Yii::$app->session->setFlash('alert', ['body' => \Yii::t('app', 'Person {name} was created', ['name' => Html::a($model->getFullName(), Url::toRoute(['view', 'id' => $model->id]))]), 'options' => ['class' => 'alert-success']]);
         return $this->redirect(['index']);
     } else {
         return $this->render('create', ['model' => $model]);
     }
 }