I have the code below and I’m trying to replace what I currently use ‘value’=> 'CHtml::image($data-> with font awesome icons. Any help on how I can accomplish that would be appreciated
<?php $this->widget(‘bootstrap.widgets.TbGridView’,array(
‘id’ => ‘vpolicy-grid’,
‘dataProvider’ => $model->searchForPolicyIndex(),
‘filter’ => $model,
‘type’ => ‘striped condensed’,
‘selectableRows’ => 1, // you can select only 1 row!!
‘selectionChanged’ => ‘function(id){ var objectId = $.fn.yiiGridView.getSelection(id); if (isNaN(objectId) || objectId == “”){return;} location.href = "’.$this->createUrl(‘policy/view’).’&id="+$.fn.yiiGridView.getSelection(id);}’,
‘columns’=>array(
array('name' => 'has_open_issue',
'header' => 'Issues',
'type' => 'raw',
'value' => '($data->has_open_issue == "N" ? "<i class="icon-fa-check icon-2x" style="color:green"></i>" : "<i class="icon-fa-warning-sign icon-2x" style="color:red"></i>", "", array("width"=>25, "height"=>25,))',
'filter' => VFFormUtil::getFilter_YesNo(),
'headerHtmlOptions' => array('style' => 'text-align: center; width: 80px'),
'htmlOptions' => array('style'=>'text-align: center; width: 80px'),),
array('name' => 'compliance',
'type' => 'raw',
'value' => 'CHtml::image($data->compliance == "INSUFFICIENT" ? "images/policy_insufficient.png" : "images/policy_sufficient.png", "", array("width"=>25, "height"=>25,))',
'filter' => VFFormUtil::getFilter_Compliance(),
'headerHtmlOptions' => array('style' => 'text-align: center; width: 80px'),
'htmlOptions' => array('style'=>'text-align: center; width: 80px'),),
array('name' => 'status',
'filter' => VFFormUtil::getFilter_ActiveInactive(),
'headerHtmlOptions' => array('style' => 'text-align: center; width: 80px'),
'htmlOptions' => array('style'=> 'text-align: center; vertical-align: middle; width: 80px'),),