In my form I have:
$uploads = new Zend_Form_Element_Text('upload');
$options = array('viewScript' => 'form/upload.phtml');
$decorators = array(array('ViewScript', $options));
$this->upload->setDecorators($decorators);
In /application/module/admin/view/scripts/form/upload.phtml I've put some random content. The problem is that element is still Text Element.
I tried to use ah's solution from Add some html to Zend Forms solution to put html in my form.
Against <div id="wmd-button-bar" class="wmd-panel"></div>
I've got <input type="hidden" name="dummy" />
Notice: I'm using EasyBib_Form (https://github.com/easybib/EasyBib_Form_Decorator)
How to fix problem that element is not replaced by viewscript?