Revision: 40747
Updated Code
at February 7, 2011 03:31 by ef
Updated Code
$logoPicFileSrc = '/uploads/'.$this->getObject()->partner_logo_pic; $this->widgetSchema['logo_pic'] = new sfWidgetFormInputFileEditable(array('file_src' => logoPicFileSrc, 'is_image' => true, 'edit_mode' => !$this->isNew(), 'delete_label' => 'Usu� obrazek')); $this->validatorSchema['logo_pic'] = new sfValidatorFile(array( 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir'), 'required' => false)); $this->validatorSchema['logo_pic_delete'] = new sfValidatorBoolean();
Revision: 40746
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at February 7, 2011 03:29 by ef
Initial Code
$logoPicFileSrc = '/uploads/'.$this->getObject()->partner_logo_pic; $this->widgetSchema['logo_pic'] = new sfWidgetFormInputFileEditable(array('file_src' => logoPicFileSrc, 'is_image' => true, 'edit_mode' => !$this->isNew(), 'delete_label' => 'Usuń obrazek')); $this->validatorSchema['logo_pic'] = new sfValidatorFile(array( 'mime_types' => 'web_images', 'path' => sfConfig::get('sf_upload_dir'), 'required' => false)); $this->validatorSchema['logo_pic_delete'] = new sfValidatorBoolean();
Initial URL
Initial Description
Example provides working solution to uploading and editing files in Symfony.
Initial Title
Example of using sfWidgetFormInputFileEditable to add images in Symfony 1.4
Initial Tags
Initial Language
Symfony