开发者

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());
0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜