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

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

WBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWBOYWB
Release: 2016-06-06 20:23:56
Original
1363 people have browsed it

Hi,all.
我有如下的代码

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

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

回复内容:

Hi,all.
我有如下的代码

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

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

fix


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

Related labels:
php
Statement of this Website
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
Latest Issues
php data acquisition?
From 1970-01-01 08:00:00
0
0
0
PHP extension intl
From 1970-01-01 08:00:00
0
0
0
How to learn php well
From 1970-01-01 08:00:00
0
0
0
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template