We use cookies to improve your experience. No personal information is gathered and we don't serve ads. Cookies Policy.

ExpressionEngine Logo ExpressionEngine
Features Pricing Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University
Log In or Sign Up
Log In Sign Up
ExpressionEngine Logo
Features Pro new Support Find A Developer
Partners Upgrades
Blog Add-Ons Learn
Docs Forums University Blog
  • Home
  • Forums

How to add column with "table class"

Development and Programming

sinnawat's avatar
sinnawat
1 posts
10 years ago
sinnawat's avatar sinnawat

Today I’ve got a problem when I use table class

I use table class for list data from database to table

I’ve 3 column eg.

ID | NAME | TEL | 1 aaa 001 2 bbb 002

everything work fines. but..

I want to add more column that “without mapping with database field” for edit and delete button, but I can’t

how I ?

ee()->table->set_columns(array(
      'calendar_topic_order'  => array('header' => 'ID'),
      'calendar_topic_name_th' => array('header' => 'Name'),
      'calendar_topic_name_en'  => array('header' => 'Tel'),
      // ''  => array('header' => 'Action', 'sort' => false) ???
  ));

Thankyou.

       

Reply

Sign In To Reply

ExpressionEngine Home Features Pro Contact Version Support
Learn Docs University Forums
Resources Support Add-Ons Partners Blog
Privacy Terms Trademark Use License

Packet Tide owns and develops ExpressionEngine. © Packet Tide, All Rights Reserved.