picture shows what I have and what they want to have
'columns' => array(
array(
'header' => 'id',
'name' => 'id',
'value'=>'$data->id',
),
I have to do so that the "value => id" instead display an NO.ID Started to display an TXT_ ID NO.ID
By using createCommand
Yii::app()->db->createCommand('SELECT CONCAT('TXT ',id),other_fields.. FROM table WHERE 1');
This will definitely help you
'columns' => array(
array(
'header' => 'id',
'name' => 'id',
'value' =>'$data->id',
'type' =>'raw',
"value" => function($data){
echo "TXT ".$data->id;
},
),