> I still don't get the idea behind the creation of 2 not identical file
> transfer objects.
>
basically because as I said I'm a newbie ...;)
I didn't understand all the process ...
The Form_Element_File is extended (in my case) for the default decorator 'tr/td'
and for 'auto label' on init()
> And this call - $upload = new Zend_File_Transfer(); - will raise an
> exception.
sure ... an 'Implementation in progress' Exception
that's why the second extension (File_Transfer) ...
but it's useless 'cause we can use directly the Adapter_Http
(or also anything if ther's a Zend_Form_Elemet_File)
> Why not use the file element directly when he already has a $form ?
> You should only use a self created file transfer object when you don't use
> Zend's file elements.
ok now it's all clear ... (I hope)
so if we use Zend_Form_Element_File it's no necessary the use of
Zend_File_Transfer or its adapter Zend_File_Transfer_Adapter_Http
because Zend_Form_Element_File::getValue() directly calls
Zend_File_Transfer_Adapter_Http::receive()
and only in case we are using a 'NOT Zend' form element we can 'receive' the
file using the http adapter ...
is it correct ?
For resizing, thumbs, watermarking do you suggest to make our own filters
implementing Zend_Filter_Interface::filter($value) ?
Thank you for your patience
Greetings
--
________________________________________________________________________________
Simone Cosci - Planet S.r.l. Sistemi informatici
Via Giorgio Ambrosoli, 39 - 50018, Scandicci, Firenze, Italy
WEB: http://www.planetweb.it - http://www.ticka.it
E-Mail s.cosci@nextidea.it
Tel. +39 055 7350271 - Fax. +39 055 7351109
________________________________________________________________________________
没有评论:
发表评论