How can I customise radioButtonList further


I have this radio button list.

<?php //echo $form->labelEx($model,'q10m03'); ?>

		<div class="radioButtonLabel"> </div><?php echo $form->radioButtonList($model,'q10m03',array('','','',''),array('separator'=>'','labelOptions'=>array('style'=>'display:inline'))); ?>

		<?php echo $form->error($model,'q10m03'); ?>


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.


same problem here,

can anyone help ?




	<?php echo $form->radioButtonList(



                array('alano'=>'alano', 'bracco'=>'bracco'),

                array( 'template'=>"










This one is working for me. Yii is not stripping any tag. If you were testing with firebug, consider that tag td will not be parsed and so displayed by firebug if they are not in a <table><tr>

Beautiful, firebug was the problem. Thanks for the tip.