Hi,

i have extended a widget using sfWidgetFormInputFileEditable this way:

  public function configure()
  {

     parent::configure();

    $this->widgetSchema['fotografia'] = new
sfWidgetFormInputFileEditable(array(
        'file_src' => '/uploads/fotografias_miembros/'.$this->getObject
()->getFotografia(),
        'is_image' => true,       // El archivo es una imagen y se
debe visualizar.
        'with_delete' => true,    // AƱadimos un checkbox para borrar
la imagen.
        ));


    $this->validatorSchema['fotografia'] = new sfValidatorFile(array(
        'required' => false,
        'path' => sfConfig::get('sf_upload_dir').'/
fotografias_miembros',
        'mime_types' => 'web_images',
        ));


    $this->validatorSchema['fotografia_delete'] = new
sfValidatorBoolean();

  }



It is working ok this way. Now im trying to change the class of the
validator this way:

    $this->validatorSchema['fotografia'] = new sfValidatorFile(array(
        'required' => false,
        'path' => sfConfig::get('sf_upload_dir').'/
fotografias_miembros',
        'mime_types' => 'web_images',
        'validated_file_class' => 'sfResizedFile'
        ));


Now after choosing a file from the file explorer i get this error:

Fatal error: Class 'sfResizedFile' not found in /opt/lampp/htdocs/rs/
lib/vendor/symfony/lib/validator/sfValidatorFile.class.php on line 167

I have created the file the error mentions and the class sfResizedFile
inside of it. But the error is the same...I have also checked the
permissions of the path.


Any idea?

Regards

Javi

--

You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en.


Reply via email to