does anyone know if there is a VALIDATE function for a form in cakePHP and view the errors array? i.ve checked the documentation but the only thing i found is the SAVE function, i just need to know if the data i send is valid and review the errors manually.
+2
A:
Try this
$this->ModelName->set( $this->data );
if ($this->ModelName->validates()) {
// it validated logic
} else {
// didn't validate logic
}
And read this
Nik
2010-07-27 12:58:31
yesssssssssssss thanks nik!
leanyo martinet
2010-07-27 13:17:46
If it's working consider to accept the answer :)
Nik
2010-07-27 17:25:40
now it's done, sorry man i am really new at this stuff :)
leanyo martinet
2010-08-25 09:38:45