php - Cannot save POST items to database with Phalcon framework -
php - Cannot save POST items to database with Phalcon framework - controller: class peoplecontroller extends \phalcon\mvc\controller{ public function indexaction(){ } public function createpersonaction(){ $person = new people(); $person->firstname=$this->request->getpost("firstname"); $person->surname=$this->request->getpost("surname"); $person->telephone=$this->request->getpost("telephone"); $person->email=$this->request->getpost("email"); $person->city=$this->request->getpost("city"); $person->country=$this->request->getpost("country"); $person->save(); if ($person) { echo"successfully registered user!"; } else { echo "sorry, next problems generated: "; foreach ($person->getmessages() $message) { echo $message-&