connected to the file element, and no other element.
It would have been nice if this additional methods from files can be called
from within the form, without fetching the file element and then calling
them on the element. But thats not possible for now. You can get details
from matthew who is the architect for form.
Greetings
Thomas Weidner, I18N Team Leader, Zend Framework
http://www.thomasweidner.com
----- Original Message -----
From: "Goran Juric" <goran.juric@nacional.hr>
To: <fw-mvc@lists.zend.com>
Sent: Wednesday, November 19, 2008 1:24 AM
Subject: Re: [fw-mvc] Zend_Form_Element_File value when not uploading
>
>
>
> thomasW wrote:
>>
>> There is only one file adapter because you have only one $_FILES input
>> array.
>> Having multiple file adapters would not work. This is mentioned, because
>> the
>> first would try to receive the files and the second would then throw an
>> exception because there are no more files to receive.
>>
>> What you have in those two variables is the same adapter.
>>
>> And actually you are calling isUploaded on the adapter (which hold all
>> uploaded files) and not the form element (where this new method does not
>> exist for now).
>>
>
> Yes, I figured so. In that case It would make more sanse for the
> getTransferAdapter() method to be located in the Zend_Form instead of
> Zend_Form_Element_File, since that is the adapter that the form uses for
> all
> file elements.
>
> Don't you think so?
>
> Regards,
>
> Goran Juric
> http://gogs.info/
>
> --
> View this message in context:
> http://www.nabble.com/Zend_Form_Element_File-value-when-not-uploading-tp20567916p20571517.html
> Sent from the Zend MVC mailing list archive at Nabble.com.
没有评论:
发表评论