Php YiBooster radioButtonListRow不工作

Php YiBooster radioButtonListRow不工作,php,twitter-bootstrap,yii,yii-extensions,Php,Twitter Bootstrap,Yii,Yii Extensions,我正在使用YiiBooster和Yii生成一个表单 大多数表单都可以工作——提前键入、复选框和输入行都可以。当我尝试使用radioButtonListRow时,它会呈现模板文本({labelTitle}{endLabel}),而不是标签文本: <?php echo $form->radioButtonListRow( $model, 'radioButtons', array( '

我正在使用YiiBooster和Yii生成一个表单

大多数表单都可以工作——提前键入、复选框和输入行都可以。当我尝试使用radioButtonListRow时,它会呈现模板文本({labelTitle}{endLabel}),而不是标签文本:

<?php echo $form->radioButtonListRow(
            $model,
            'radioButtons',
            array(
                'Option one',
                'Option two',
            )
        ); ?>

结果显示为html

<div class="control-group">
    <label class="control-label" for="Surveys_radioButtons">GCSE Maths</label>
    <div class="controls">
        <input id="ytSurveys_radioButtons" type="hidden" value="" name="Surveys[radioButtons]">
            <span id="Surveys_radioButtons">
            <input id="Surveys_radioButtons_0" value="0" type="radio" name="Surveys[radioButtons]">
            {labelTitle}{endLabel}
            <input id="Surveys_radioButtons_1" value="1" type="radio" name="Surveys[radioButtons]">
            {labelTitle}{endLabel}
            </span>
    </div>
</div>

GCSE数学
{labelTitle}{endLabel}
{labelTitle}{endLabel}
上面的示例直接从复制,只更改了属性名称


有人知道我做错了什么吗?

嗯,我比较了
CHtml::radioButtonList
的实现,我认为问题出在yii版本中。 只需将其更新为最新版本,一切都会正常。

将其修改为

<?php 
echo $form->radioButtonListGroup(
         $model,
         'radioButtons',
         array(
             'Option one',
             'Option two',
         )
     );
?>