Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- class addPhotoForm extends BaseForm
- {
- public function configure()
- {
- $subForm = new sfForm();
- for($i = 0; $i < 5; $i++):
- $form = new PhotoForm();
- $subForm->embedForm($i, $form);
- endfor;
- $this->embedForm('photos', $subForm);
- $this->widgetSchema->setNameFormat('photos[%s]');
- }
- }
Add Comment
Please, Sign In to add comment