php - Zend_Validate::is() Static Check, get validation message work around -
does know of way validation messages using zend_validate in static scope?
zend_validate::is($value, $validator[0], $validator[2])
the docs explicitly getting messages isn't option: http://framework.zend.com/manual/en/zend.validate.introduction.html#zend.validate.introduction.static
slightly discouraging, wondering if knew of other methods inside zend getting messages validation string?
i'm following great article validating @ model level if interested: http://www.cambraca.com/2011/03/validation-in-zend-framework-model.html
thanks help, -seth
i'm afraid cannot done. see, messages attached each validator object - cannot attach them class (unless make own implementation of validation logic static message properties , static setter/getter , use instead).
Comments
Post a Comment