Yii Hint For Form Radio Button

This tutorial will help you to style the radio button list on form. Using template, separator, style and label options, We can give proper style to radio button.

<div class="row">
<?php echo $form->labelEx($model,'isactive'); ?>
    echo $form->radioButtonList($model,'isactive',
                        'style'=> '
                                  width: 60px;
                                  float: left;
  <div style="clear: both;"></div>
  <?php echo $form->error($model,'isactive'); ?>

Leave a Reply

Your email address will not be published. Required fields are marked *