I recently tried the zend framework (quick start project) :) and I really liked it.
All frameworks (zend, cakephp) implement a very good way to check form fields. Moreover, these checks are so easy to implement that you only need to specify the name of the check that you want to apply.
Like this:
$this->addElement('text', 'email', array(
'label' => 'Your email address:',
'required' => true,
'filters' => array('StringTrim'),
'validators' => array(
'EmailAddress',
)));
Also, if any input is entered in accordance with the verification criteria and presented, the remaining values ββof the form fields are not cleared at all and a corresponding message is displayed.
This made me think about how to create a system similar to these validation criteria. So that it can be easily integrated into a web application that was not built using the framework.
, PHP ( ), , .
, - PHP, .
, .
.