0
我建立一个Zend_Form.Having:相同的Zend_Form_Element多次
$form->addElements(array($file,$file));
我需要:
$file=new Zend_Form_Element_File('file');
$file->setDescription('upload a picture:')
->setDestination(myPath);
$file->class="media[]";
$file->setDecorators(array(
'File',
array('Description',array('placement'=>'PREPEND','tag'=>'')),
array('HtmlTag',array('tag'=>'span','class'=>'myclass'))
));
我不能与多个相同的元素添加到窗体创建一个自定义的form_element_file类,以便我可以多次注册与表单完全相同的元素 ?如何?
感谢
卢卡
太棒了! – luca 2011-05-27 06:47:14