Skip to content
4 Xtreme Co.,Ltd.

4 Xtreme Co.,Ltd.

  • Home
  • Our Client
  • Service
    • รับทำ Mobile Application
    • รับทำ Web Application
    • รับทำ Software Application
    • SSL Certificate Price
  • Infrastructure
    • Big Data
    • Container
    • Infrastructure Cloud
    • Map Service
  • Blog
  • Contact
  • Home
  • Our Client
  • Service
    • รับทำ Mobile Application
    • รับทำ Web Application
    • รับทำ Software Application
    • SSL Certificate Price
  • Infrastructure
    • Big Data
    • Container
    • Infrastructure Cloud
    • Map Service
  • Blog
  • Contact
Custom value Cell in CGridvew Yii Framework

Custom value Cell in CGridvew Yii Framework

พฤษภาคม 13, 2016กุมภาพันธ์ 22, 2019 admin Programming

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]

© 2010-2020 4 Xtreme Co., Ltd. Thailand. All rights reserved

รับเขียนโปรแกรม พัฒนาซอฟต์แวร์ บริษัทรับเขียนโปรแกรม

บริษัท โฟร์เอ็กซ์ตรีม จำกัด

171/1 หมู่ที่ 1 ต.สันกำแพง อ.สันกำแพง จ.เชียงใหม่ 50130 ทะเบียนหมายเลข 0505553006011

โทรศัพท์: 089-432-4600 | Line : chatcharinp | Email : sale@4x-treme.com

รับเขียนโปรแกรมจองรถ, รับเขียนโปรแกรมร้านอาหาร, รับเขียนโปรแกรมจองห้องประชุม, รับเขียนโปรแกรมบัญชี, รับเขียนโปรแกรมบริหารงานบุคคล, รับเขียนโปรแกรมฝึกอบรม, รับเขียนโปรแกรมสต็อกสินค้า, รับเขียนโปรแกรมที่จอดรถ, รับเขียนโปรแกรมการออกตั๋วเข้าชม, รับเขียนโปรแกรมควบคุมการผลิต, รับเขียนโปรแกรมระบบงานลงทะเบียน, รับเขียนโปรแกรมจองโรงแรม, รับเขียนโปรแกรม Barcode, รับเขียนโปรแกรม RFID, รับเขียนโปรแกรมจองห้องพัก, รับเขียนโปรแกรมฟิตเนส, รับเขียนโปรแกรม POS, รับเขียนโปรแกรม Arduino, รับเขียนโปรแกรม GPS, รับเขียนโปรแกรม QR Code, รับเขียนโปรแกรม Chat Bot