Thursday, October 31, 2013

CakePHP 1.3: How to display form validation error messages when form is not tied to a model?

I have a view where I used FormHelper methods ($this->Form->input, etc.) to create a form (post), but this form is not tied to any model.  It's a dumb form.  

For example, some fields are date fields.  My controller will do some validation on these fields, but if there is a problem, how would I display the error message right below the field that had a validation error?  With forms tied to models, CakePHP will automagically add a div to the relevant field to display the validation error message.  Is there something similar for dumb forms?

Thank you for the assistance.


--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/groups/opt_out.

No comments: