How can i combine two values on one column in CGridView:
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'encomenda-linha-grid',
'dataProvider'=>$encomendaLinhasProvider,
'columns'=>array(
array(
'name'=>'Style',
'value'=>'$data->ritmo->title'.....,
),
),
)); ?>
Layne
(Petrbuchyn)
2
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'encomenda-linha-grid',
'dataProvider'=>$encomendaLinhasProvider,
'columns'=>array(
array(
'name'=>'Style',
'value'=>"{$data->ritmo->title} {$data->otherValue}",
),
),
)); ?>
rootbear
(Alex Xm)
3
@Layne, just tried, seems not working
how about this:
<?php $this->widget('zii.widgets.grid.CGridView', array(
'id'=>'encomenda-linha-grid',
'dataProvider'=>$encomendaLinhasProvider,
'columns'=>array(
array(
'name'=>'Style',
'value'=>'$data->ritmo->title . " , " .$data->otherValue ',
),
),
)); ?>
bkudrle
(Bkudrle)
4