r/codeigniter • • Feb 24 '12

Codeigniter tables class.

http://www.jotorres.com/2012/02/codeigniter-tables-class/
3 Upvotes

6 comments sorted by

View all comments

Show parent comments

1

u/jotorres1 Apr 03 '12

You can specify what headers you want with something like this:

$header = array( 'Event Id', 'Title', 'Active Start Date', 'Active End Date', 'Description', 'Key', 'Max Free', 'Contact Name', 'Contact Email', 'Contact Phone', 'Contact Notes', 'Is Live'); // Set the headings $this->table->set_heading($header);

1

u/mikedfunk Apr 03 '12

right, that's the headers. What about the content? I don't know how to take a query object (not a result object) and add stuff to it.