Hello,
I have this radio button list.
<?php //echo $form->labelEx($model,'q10m03'); ?>
<div class="radioButtonLabel">Decanter.com </div><?php echo $form->radioButtonList($model,'q10m03',array('','','',''),array('separator'=>'','labelOptions'=>array('style'=>'display:inline'))); ?>
<?php echo $form->error($model,'q10m03'); ?>
</div>
It’s rendering the radio buttons in a horizontal row with no labels. Perfect.
I want to to create a matrix for selection so I’d like to have a few of these rows of buttons on top of each other . I’d like to drop each radio button into it’s own cell and put them all in a table so I can format it nicely.
My problem is I can’t figure out how to get radioButtonLabel to render each button enclosed in <td></td> tags. I’ve tried ‘separator’ and ‘template’ in htmlOptions but Yii removes the HTML tags. Is there a yiisy way?
Thanks in advance.
Greg