I need to get this output from Zend_Form_Radio using Decorators:
<div>
<label class="normal-label">Gender</label>
<div class="buttonset">
<input type="radio" id="radio1" name="gender" class="rbutton" />
<label for="radio1" class="ui-button"><span class="ui-button-text">Male</span></label>
<input type="radio" id="radio2" name="gender" class="rbutton" />
<label for="radio2" class="ui-button"><span class="ui-button-text">Female</span></label>
</div>
</div>
I try a lot of decorators combination but I never reached the internal label. One of my test:
$this->setDecorators(array(
'ViewHelper',
'Errors',
array(array('data' => 'HtmlTag'), array('tag' => 'div', 'class' => 'buttonset') ),
array('Label', array('class' => 'normal-label')),
array(array('row' => 'HtmlTag'), array('tag' => 'div' ) ),
));
$this->setSeparator(' ');