Well, the rest of the code is pretty classic i guess : $uploadform = new Zend_Config_Xml(ROOT_DIR.'/application/forms.xml', 'photoUpload'); $form = new Zend_Form($uploadform); $this->view->form = $form;
- The rest of the elements works, only the file element gives the warning and is not displayed - It happens at display - The code works with 1.6.1 but not with 1.6.2 or 1.7PR thomasW wrote: > > I dont think that we can help without any information about the code you > produced. > The ini file is not enough to see what you called and how you called it. > > Greetings > Thomas Weidner, I18N Team Leader, Zend Framework > http://www.thomasweidner.com > > ----- Original Message ----- > From: "Maax V" <[EMAIL PROTECTED]> > To: <[email protected]> > Sent: Wednesday, October 29, 2008 10:05 AM > Subject: [fw-general] php warning when using Zend Form File > > >> >> Hi all, >> >> I receive the following warning when I try to use Zend Form File Element >> (indirectly throw Zend Form and a Zend Config object) : >> Warning: Unknown file in >> /home/www/client/htdocs/com.*****.wip/library/Zend/Form/Element.php on >> line >> 1923 >> >> I don't understand why I get this error. It appeared after I updated to >> ZF >> 1.6.2 (minimal) whereas it was working fine with the exact same code >> earlier. >> Here is the Zend Config object that generate the Element : >> <fileInput> >> <type>file</type> >> <options> >> <label>F_PHOTOUPLOAD_IMAGEFILE</label> >> <validators> >> <count> >> <validator>Count</validator> >> <options> >> <count>1</count> >> </options> >> </count> >> </validators> >> </options> >> </fileInput> >> >> The rest of the Form works just fine. >> Please tell me what I'am doing wrong here and excuse my bad english ! >> -- >> View this message in context: >> http://www.nabble.com/php-warning-when-using-Zend-Form-File-tp20223122p20223122.html >> Sent from the Zend Framework mailing list archive at Nabble.com. > > > -- View this message in context: http://www.nabble.com/php-warning-when-using-Zend-Form-File-tp20223122p20243527.html Sent from the Zend Framework mailing list archive at Nabble.com.
