Reputation: 65
I have a form, with some fields. When i try save, not happens and I don´t know what´s the problem. How can i see whats happening on the save moment ?!
Thanks you!.
Upvotes: 0
Views: 278
Reputation: 3701
Anywhere in your view file, you get the errors like this :
<?php debug($this->AnyModel->validationErrors);?>
Aside from debugging, you display field-by-field error like this :
<?php $this->Form->error('fieldname'); ?>
This will return the message from validation rules, only if the field has thrown an error.
Hope this helps!
Upvotes: 1
Reputation: 8100
These are the most likely causes for a failed save:
Upvotes: 3