Welcome Guest, Not a member yet? Register   Sign In
table class remove ID field when displaying the table
#8

[eluser]R_Nelson[/eluser]
Quote:If you want to view the table without and id, you can. Just select the fields you want and pass it to the table generate function:
$q = $this->db->select('SONG_NAME,ARTIST')->get('songs');

$this->table->set_heading('Song name','Artist');
echo $this->table->generate($q);

I myself havent used html table class in years. I prefer the freedom to define the table how I want(of course you can define it via templates in the table class but imho its easier to just pass the results to the view and modify the looks in that).

lol this is what i get for only reading the last message i guess my question was already answered! i just missed it!


Messages In This Thread
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 11:34 AM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 04:33 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 06:36 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 07:17 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 08:30 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 08:42 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 09:48 PM
table class remove ID field when displaying the table - by El Forum - 04-03-2011, 09:50 PM



Theme © iAndrew 2016 - Forum software by © MyBB