Custom value Cell in CGridvew Yii Framework

Add function in Model Class[php]
public function name($data,$row) {
return sprintf(‘%s %s’, $data->firstname, $data->lastname);
}
[/php]

Custom column and set value in CGridview
[php]
‘columns’=>array(
array(
‘header’=>’name’,
‘value’=>array($model,’name’),
),
‘age’,
’email’,
…………….
[/php]