How to clear all validators of single field from Zend Form?
$form->fieldName->clearValidators();
I used clearValidators()
to clear all validators of a single field of my zend form, and I wanted to clear validators when my action performs. But it doesn't wo开发者_如何学Pythonrk. Can anybody help?
try this
$form->fieldName->setValidators(array());
精彩评论