In beforeSave(), before returning false, you can do
$this->invalidate($field_name);
To me, beforeValidate() seems a little more logical place to put that, though.
Hope it works for you.
Sohei
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake PHP" group.
To post to this group, send email to cake-php@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at http://groups.google.com/group/cake-php
-~----------~----~----~----~------~----~------~--~---
- Validation problem milicic.marko
- Re: Validation problem Sohei Okamoto
- Re: Validation problem milicic.marko
- Re: Validation problem Matt Adams