How do I use ViewScripts on Zend_Form File Elements?

The answer is relatively simple as it happens. All you need do is specify the File decorator first, create a specific view script for the file input and specify false for the placement in the viewScript decorator arguments, this will effectively inject the output from the File decorator into the viewScript decorator e.g. $element->setDecorators(array(‘File’, array(‘ViewScript’, … Read more