Thursday, September 5, 2013

การใส่ attribute ลง cgridview ใน 1 cell มากกว่า 1 attribute


Code
$this->widget('zii.widgets.grid.CGridView', array(
  'dataProvider'=>$dataProvider,
  'columns'=>array(
    array(
      'name'=>'student_name',
      'type'=>'raw',
      'value'=>'"ชื่อ ".$data->name . " นามสกุล " . $data.surname ',
    ),
  ),
));








ที่มา http://www.yii.in.th/forum/index.php?topic=52.0

No comments:

Post a Comment

Blog Archive

http://cksc.co.th/site/

Total Pageviews

Popular Posts