admin.php
'filter'=>$model,
...........................
...........................
'columns'=>array(
array(
"name"=>"shop_type",
'htmlOptions'=>array('style'=>'text-align:left'),
'type' => 'raw',
'value'=>array($this,'getShopInfo'),
)
'columns'=>array(
array(
"name"=>"shop_type",
'htmlOptions'=>array('style'=>'text-align:left'),
'type' => 'raw',
'value'=>array($this,'getShopInfo'),
)
),
controller:
public function getShopInfo($data){
$html = '<span>'.t('shop',$data->shop_type).'</span>';
return $html;
}
$html = '<span>'.t('shop',$data->shop_type).'</span>';
return $html;
}
0 comments:
Post a Comment