Your controller should be much simpler - like:
if ( $this->User->save($this->data) ){
echo "saved";
} else {
$this->log( $this->User->validationErrors );
echo "not saved";
}
the save() call automatically validates the data, and will not save if
it does not pass validation. The log() call will write out the
validation errors to your app/tmp/logs/error.log file, and it should
identify which values are not passing.
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---