if( !isset($_FILES['foofile']) && ($element =
$this->_form->getElement('foofile')) )
{
$element->clearValidators();
}
... else isValid() will emit errors on the Zend_Form_Element_File:
Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: name in Zend/Validate/File/Size.php on line 398
Notice: Undefined index: tmp_name in Zend/File/Transfer/Adapter/Abstract.php
on line 589
Notice: Undefined index: name in Zend/Validate/File/Extension.php on line
228
--
View this message in context: http://www.nabble.com/Zend-File-Transfer-Adapter-Abstract.php%3A589-tp22722502p22724361.html
Sent from the Zend Core mailing list archive at Nabble.com.
没有评论:
发表评论