|
[symfony-users] "remove the current file" doesnt work: msg#00917symfony-users
I have 2 days with that problem, the code which im using is the next (lib/form/ArtistaForm.class.php): $i = 1; while($i<=4) { $this->widgetSchema['foto'.$i] = new sfWidgetFormInputFileEditable(array( 'file_src' => '/hofestival/web/uploads/artistas/full/'.$this->getObject()->getFotoN($i), 'is_image' => true, 'edit_mode' => !$this->isNew(), 'with_delete' => true, 'template' => '<div>%file%<br/><br/><div style="margin-left: 115px">%input%<br/>%delete% %delete_label%</div></div>' )); $this->validatorSchema['foto'.$i] = new sfValidatorFile(array( 'required' => false, 'path' => sfConfig::get('sf_upload_dir').'/artistas/full', 'mime_types' => 'web_images' )); $this->validatorSchema['foto'.$i.'_delete'] = new sfValidatorPass(); $i++; // 5 fotos } The widget includes right, I can upload an image and image shows. But when I click in delete checkbox nothing happens :S I readed sfWidgetFormInputFileEditable includes that option. Need ur help Greetings --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "symfony users" group. To post to this group, send email to symfony-users@xxxxxxxxxxxxxxxx To unsubscribe from this group, send email to symfony-users+unsubscribe@xxxxxxxxxxxxxxxx For more options, visit this group at http://groups.google.com/group/symfony-users?hl=en -~----------~----~----~----~------~----~------~--~---
|
|
||||||||||||||||||||||||||
|
|
|
| News | Mail Home | sitemap | FAQ | advertise |