Details
Description
viewScript and helper are set as attributes to elements when source is rendered...
I see sample solution -> Zend_Form_Decorator_Image::$_attribBlacklist
But only there it is implemented.
Should be done for all Elements.
$el = new Zend_Form_Element_Select('el_name'); $el->viewScript = 'index/ba.html'; $el->setDecorators(array( array('ViewScript', array('class' => 'form element')), //array('ViewHelper', array('helper' => 'formSelect')) )); $form->addElement($el);
output:
<select name="el_name" id="el_name" helper="formSelect" viewScript="index/ba.html">
Setting to Zend_Form componnent...forgot to mention