Yii 使用TbHtml的TbEdiableColumn中的用法图标

Yii 使用TbHtml的TbEdiableColumn中的用法图标,yii,yii-booster,Yii,Yii Booster,我使用TbGridView和类TbEditableColumn编辑元素TbGridView一次,但我有一个问题-TbEditableColumn的值不能与字体图标一起使用。如何使TbEditableColumn值用于字体 例如: array( 'class' => 'booster.widgets.TbEditableColumn', 'name' => 'pictogram', 'sor

我使用TbGridView和类TbEditableColumn编辑元素TbGridView一次,但我有一个问题-TbEditableColumn的值不能与字体图标一起使用。如何使TbEditableColumn值用于字体

例如:

array(
                'class' => 'booster.widgets.TbEditableColumn',
                'name' => 'pictogram',
                'sortable' => true,
                'editable' => array(
                    'url' => $this->createUrl('/currencyAjax/update'),
                    'placement' => 'right',
                    'inputclass' => 'span3',
                    'title' => 'Currency',
                    'type' => 'select',
                    'source' => Currency::getPictograms(),
                )
            ),
货币::getPictograms()如下:

public static $currencyPictograms = array(
        'glyphicon fa fa-usd' => '<span class="glyphicon fa fa-usd"></span>',
        'glyphicon fa fa-jpy' => '<span class="glyphicon fa fa-jpy"></span>',
        'glyphicon fa fa-eur' => '<span class="glyphicon fa fa-eur"></span>',
        'glyphicon fa fa-rub' => '<span class="glyphicon fa fa-rub"></span>',
    );
public static function getPictograms(){
        return self::$currencyPictograms;
    }
public static$currencyPictograms=数组(
“glyphicon fa usd”=>“”,
'glyphicon fa jpy'=>'',
'欧元汇率'=>'',
“glyphicon fa rub'=>”,
);
公共静态功能getPictograms(){
返回自我::$currencyPictograms;
}
因此,我有:

    <select class="form-control span3">
<option value="glyphicon fa fa-usd">&lt;span class=&quot;glyphicon fa fa-usd&quot;&gt;&lt;/span&gt;</option>
<option value="glyphicon fa fa-jpy">&lt;span class=&quot;glyphicon fa fa-jpy&quot;&gt;&lt;/span&gt;</option>
<option value="glyphicon fa fa-eur">&lt;span class=&quot;glyphicon fa fa-eur&quot;&gt;&lt;/span&gt;</option>
<option value="glyphicon fa fa-rub">&lt;span class=&quot;glyphicon fa fa-rub&quot;&gt;&lt;/span&gt;</option>
</select>

span class=“glyphicon fa usd”/span
span class=“glyphicon fa jpy”/span
span class=“glyphicon fa eur”/span
span class=“glyphicon fa rub”/span
有什么想法吗?

array(
array(
            'class' => 'booster.widgets.TbEditableColumn',
            'name' => 'pictogram',
            'sortable' => true,
            'editable' => array(
                'url' => $this->createUrl('/currencyAjax/update'),
                'placement' => 'right',
                'inputclass' => 'span3',
                'title' => 'Currency',
                'type' => 'select',
                'source' => Currency::getPictograms(),
                'encode' => false, // <= this flag should turn off html encoding
            )
        ),
'class'=>'booster.widgets.TbEditableColumn', “名称”=>“象形图”, 'sortable'=>true, “可编辑”=>数组( 'url'=>this->createUrl('/currencyAjax/update'), 'placement'=>'right', “inputclass”=>“span3”, “标题”=>“货币”, '类型'=>'选择', 'source'=>Currency::getPictograms(),
'encode'=>false,//不幸的是,这没有帮助。