Zend_Form setMultiFile()
Posted
by Cristian
on Stack Overflow
See other posts from Stack Overflow
or by Cristian
Published on 2010-06-08T20:28:26Z
Indexed on
2010/06/08
20:32 UTC
Read the original article
Hit count: 133
zend-framework
|zend
Hello everyone, i got a question related to the setMultiFile method of zend_form.
I already got a form like this:
$foto->setLabel('Foto:');
$foto->addValidator('IsImage', true);
$foto->addValidator('Count', true, 12);
$foto->addValidator('Extension', true, 'gif,png,jpg');
$foto->setDestination(PUBLIC_PATH.'/upload/img/');
$foto->addFilter('Rename', array(
'target' => PUBLIC_PATH.'/upload/img/',
'overwrite' => true
));
$foto->addDecorators(array(
array('Description',array('tag'=>'','escape'=>false))
));
And it's everything working...but now i need to iterate each element to set a description and decorators...any suggestions ? Thanks to everyone that will reply to this, i'm drivin crazy with that..
© Stack Overflow or respective owner