radioButtonListInlineRow() public method

Renders a radio button list inline input row.
public radioButtonListInlineRow ( CModel $model, string $attribute, array $data = [], array $htmlOptions = [] ) : string
$model CModel the data model
$attribute string the attribute
$data array the list data
$htmlOptions array additional HTML attributes
return string the generated row
Exemplo n.º 1
0
                        <?php 
echo $form->checkBox($model, 'isNeedHostel');
?>
                    </div>
                </div>
            </div>

        </div>
        <div class="span3">

            <label for="<?php 
echo CHtml::activeId($model, 'isHigherEducation');
?>
" >
                <?php 
echo $form->radioButtonListInlineRow($model, 'isHigherEducation', array(0 => 'не отримую', 1 => 'отримую', 2 => "є", 3 => 'немає'));
?>
  
                <?php 
// Информация о высшем образовании персоны. echo $model->getAttributeLabel("isNeedHostel");
?>
            </label>
        </div>
        <?php 
if (Yii::app()->user->checkAccess("showSpecStatus")) {
    ?>
            <?php 
    $access = Yii::app()->user->checkAccess("editSpecStatus") ? "" : "disabled";
    ?>
            <div class="span2">
                <?php