Skip to main content

Home/ foograde/ Crear minuaturas por medio de una ruta
Fernando Vega

Crear minuaturas por medio de una ruta - 1 views

started by Fernando Vega on 20 Oct 10
  • Fernando Vega
     
    public function configure()
    {
    $file_src = sfContext::getInstance()->getController()->genUrl(array(
    'sf_route' => 'sf_image',
    'format' => 'backend_edit',
    'filepath' => '/barfoo/'.$this->getObject()->file
    ), false);
    $this->widgetSchema['file'] = new sfWidgetFormInputFileEditable(array(
    'label' => 'Image',
    'is_image' => true,
    'file_src' => $file_src
    ));
    $this->validatorSchema['file'] = new sfValidatorFile(array(
    'required' => false,

To Top

Start a New Topic » « Back to the foograde group