Home  >  Article  >  Backend Development  >  Zend Framework form怎么获取isValid失败的原因?

Zend Framework form怎么获取isValid失败的原因?

WBOY
WBOYOriginal
2016-06-06 20:23:561293browse

Hi,all.
我有如下的代码

<code>$formContent->isValid($_POST){
    //pass 
}
</code>

当此时验证失败的时候,我要怎么获取错误的信息呢?

回复内容:

Hi,all.
我有如下的代码

<code>$formContent->isValid($_POST){
    //pass 
}
</code>

当此时验证失败的时候,我要怎么获取错误的信息呢?

fix


html的element被谁给删掉了。导致没有那个name,导致虽然失败了但是在err里面看不到那个name的err,导致了悲剧的发生~

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn