Hello there, I'm currently trying to setup a Form including a SubForm (as described in http://framework.zend.com/manual/en/zend.form.advanced.html) to achieve a form with following inputs:
<input type="file" name="avatar[file]" /> <input type="hidden" name="avatar[id]" /> The id is the one of the avatar table in my database, I store the entry within the getValue method to return the id instead of the filename after moving (receiving) it. To achieve the proper html name attributes I already had to overwrite the file decorator (Zend_Form_Decorator_File) to use getFullyQualifiedName instead of getName(). Now, sadly, I do not get the validation properly set up, as the transfer adapter (Zend_File_Transfer_Adapter_Abstract) only gets the name instead of the fully qualified name or container name and I don't know whether providing the belongs_to value in favor of the name is the right way to go. Has anyone already built a similar form setup with Zend_Form yet or can help in some other way? Greets, Sven