Validation email doesnt work
Validation email doesnt work
schiefersoft
Posts: 7Questions: 2Answers: 2
Hi All,
when I validate the field email:
Field::inst('users.emailadress')->validator( 'Validate::email', array('required' => false)),
I get the following ajax response
Fatal error: Call to undefined function DataTables\Editor\filter_var() in /home/pi/www/v3/php/datatableseditor/php/Editor/Validate.php on line 506
when I remove the validator it works fine!
What I am doing wrong?
regards Ralf
This discussion has been closed.
Answers
Could you confirm which version of PHP you are using please? It sounds like you might be using a early 5.3.x release? They had a few problems with namespaces that might result in this issue.
There are two options:
This change is unlikely to be added to Editor as I believe it is a bug in the early 5.3.x releases.
Allan