Flourish PHP Unframework
This is an archived copy of the forum for reference purposes

Custom validation on an ActiveRecord

posted by mblarsen 9 years ago

What would be the way to go for custom validation - validation not supported by the methods described her - for an ActiveRecord.

Would you:

  1. Override validate() method, call super, and in your application throw fValidationExceptions?
  2. Use the pre-post validate hooks? in that case where would you set them up?

Thanks

check out the password validation example in fORM. you can hook right into the validation process and add your own error validation/messages.

posted by vena 9 years ago