私は Zend_Form.Having を構築しています:
$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->addElements(array($file,$file));
まったく同じ要素をフォームに複数回登録できるように、カスタムの form_element_file クラスを作成する必要がありますか?どのように?
ありがとう
ルカ