开发者

How to clear all validators of single field from Zend Form?

开发者 https://www.devze.com 2023-04-11 09:56 出处:网络
$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\
$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());
0

精彩评论

暂无评论...
验证码 换一张
取 消