Skip to main content
/
foograde
/
Crear minuaturas por medio de una ruta
Crear minuaturas por medio de una ruta
- 1 views
started by
Fernando Vega
on 20 Oct 10
#1
Fernando Vega
on 20 Oct 10
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,
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,
...
Cancel
To Top
Start a New Topic »
« Back to the foograde group
Start a New Topic
{
$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,