lkle
(Chzxin)
1
there is a activeRadioButtonList use default params showed in multi rows,like this:
2934

php souces code is
<?php echo $form->radioButtonlist($model,'needreport',$model->getneedReport()); ?>
web souces code:
<div class="row">
<label for="testitem_">need report?</label>
<input id="yttestitem_needreport" type="hidden" value="" name="testitem[needreport]" />
<span id="testitem_needreport">
<input id="testitem_needreport_0" value="0" type="radio" name="testitem[needreport]" />
<label for="testitem_needreport_0">是</label><br/>
<input id="testitem_needreport_1" value="1" type="radio" name="testitem[needreport]" />
<label for="testitem_needreport_1">否</label></span> </div>
how to put these RadioButton in one row
thanks
Try change the $htmlOptions[‘separator’] to another value.
use
array(‘class’=>‘O-checkbox’,‘separator’=>’ ’)
something like this
<?php echo $form->radioButtonlist($model,'needreport',$model->getneedReport(),array('separator'=>' ')); ?>
lkle
(Chzxin)
5
still fail,but when rendered without layout,it’s ok.
css’s problem?where is point?
softark
(Softark)
8
I think you are right. It should be a problem of css.
Use the developer’s tool of your browser to check what style is applied to the labels.