Edward Haber wrote: > > > 3) Is there a problem with the current version of the > Zend_Form_Element_File? The element doesn't appear to print with the > row decorator. > >
I am also seeing this problem in the release-1.6 branch (rev 11673)... I've created an issue report: http://framework.zend.com/issues/browse/ZF-4487 class App_Form_FileTest extends Zend_Form { /** * Form initialization * * @return void */ public function init() { $this->setAttribs(array( 'name' => 'postForm', 'method' => 'post', 'enctype' => 'multipart/form-data' )); $this->addElement( 'Textarea', 'postmessage', array( 'value' => '', 'label' => 'Message:', 'required' => true, 'style' => 'height: 150px; width:400px', //'propercase' => true, ) ); $this->addElement( new Zend_Form_Element_File( 'moviefile', array( 'label' => 'Attach Movie:', 'required' => false, 'order' => 20, 'destination' => Zend_Registry::get('config')->upload_dir, 'validators' => array( array('Count', false, 1), array('Size', false, 5242880), // 5 megs array('Extension', false, 'avi,mpg,mpeg,flv,png') ) ) ) ); } } Renders the file element without the default decorators: <form id="postForm" enctype="multipart/form-data" method="post" action=""> <dl class="zend_form"> <dt><label for="postmessage" class="required">Message:</label></dt> <dd><textarea name="postmessage" id="postmessage" style="height: 150px; width:400px" rows="24" cols="80"></textarea></dd> <input type="file" name="moviefile" id="moviefile" helper="formFile"> </dl> </form> -- View this message in context: http://www.nabble.com/Zend_Form-File-element-toggle-between-image-tp19708562p19816591.html Sent from the Zend Framework mailing list archive at Nabble.com.
