Articles Posted in the " Yii Radio Button " Category

  • CHtml Radio Button List

    CHtml Radio Button List

    Using CHtml class we are creating radioButtonList in yii framework. This post will help you to understand about how to create radioButtonList in different method, How to assign value, how to get radioButtonList value […]


  • CHtml Radio Button

    CHtml Radio Button

    Using CHtml class we are creating radioButton in yii. This post will help you to understand about how to create radioButton in different method, radioButton properties, array value, how to get radioButton value in […]


  • Yii Hint For Form Radio Button

    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'); ?> […]


  • Yii Search Using Radio Buttons

    Yii Search Using Radio Buttons

    In _search.php (form) —————— <div class="wide form"> <?php $form=$this->beginWidget('CActiveForm', array( 'action'=>Yii::app()->createUrl($this->route), 'method'=>'get', )); ?> <div class="row"> <?php echo $form->radioButtonList($model,'status', array('1'=>'Active', '2'=>'Inacitve'), array( 'template'=>'{input}{label}', 'separator'=>'', 'labelOptions'=>array('style'=>'padding-left:13px'), 'style'=>'float:left;', 'onclick'=>CHtml::ajax(array( 'success'=>"$('.search-form form').submit()", ))) ); ?> </div> <?php […]