Hello,
-
When using form validators, is still required to use binding when inserting to db, or the input is considered already safe?
$name = new Text('Name'); $name->setFilters('alphanum'); $name->addValidators(array( new PresenceOf(array( 'message' => 'Please enter your name' )), new Alpha(array( 'message' =>Name is not valid' )) )); $this->add($name);
-
When calling
$form->bind($_POST, new Model())
, the data from model will already have the filters applied, or is getting the raw data from $_POST? - The ORM does any checking and filtering by default?
Thanks