[symfony-users] Re: how to set form fields value into array?

2009-11-04 Thread mel_06
i know the action part but declaring the form in my problem? how can i do my single upload form into a multi upload form? On Nov 4, 7:22 pm, mel_06 <06melc...@gmail.com> wrote: > tried adding this code, but won't upload any file? > > for ( $i = 0; $i <= count('file') - 1; $i++) { > $this->setWidg

[symfony-users] Re: how to set form fields value into array?

2009-11-04 Thread mel_06
tried adding this code, but won't upload any file? for ( $i = 0; $i <= count('file') - 1; $i++) { $this->setWidgets(array( 'file'.[$i] => new sfWidgetFormInputFile(array('label' => 'File',)), )); $this->widgetSchema->setNameForm