Hello,
I am new to Phalcon and wonder what the best way would be to save validated data to a database. I read the Forms page in the docs, but when I implement a model wich validates input data:
class Test extends Form {
public function initialize(){
$name = new Text('name', array(
'placeholder' => 'Name'
));
$name->addValidators(array(
new PresenceOf(array(
'message' => 'The name is required'
))
));
$this->add($name);
}
}
What is the best way to write the controller and the view if I have model like this?
Sparkling Soda