próbuję robić to w ten sposób, ale niestety nic z tego...
Macie może jakieś pomysły ?
Kod
class imageForm extends BaseimageForm
{
public function configure()
{
$this->widgetSchema['path'] = new sfWidgetFormInputFile(array(
'label' => 'Dodaj zdjęcie',
));
$this->validatorSchema['path'] = new sfValidatorFile(array(
'required' => false,
'path' => sfConfig::get('sf_upload_dir').'/userImages/realizations/'.$this->getObject()->getIdRealizations(),
'mime_types' => 'web_images',
));
}
}
{
public function configure()
{
$this->widgetSchema['path'] = new sfWidgetFormInputFile(array(
'label' => 'Dodaj zdjęcie',
));
$this->validatorSchema['path'] = new sfValidatorFile(array(
'required' => false,
'path' => sfConfig::get('sf_upload_dir').'/userImages/realizations/'.$this->getObject()->getIdRealizations(),
'mime_types' => 'web_images',
));
}
}