作者热门文章
- iOS/Objective-C 元类和类别
- objective-c - -1001 错误,当 NSURLSession 通过 httpproxy 和/etc/hosts
- java - 使用网络类获取 url 地址
- ios - 推送通知中不播放声音
有没有办法从输入中分离验证器?例如
$input->getValidatorChain()
->attach('email_address')
->attach('no_record_exists');
if($isExistingUser == true) {
$input->getValidatorChain()
->remove('no_record_exists');
}
最佳答案
$form->getInputFilter()->remove('no_record_exists');
Form 是一个 Zend\Form\Form 对象
关于php - ZF2 从验证器链中移除验证器,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/17046556/
我正在做一个项目,我的 android 在这个项目中作为一个网络服务器工作;输入带端口号的 IP 地址,打开 Web 界面,用户可以将文件上传到手机。我想在 Web 界面上显示一些图片,以便我们的界面
我是一名优秀的程序员,十分优秀!