CodeIgniter Forums
add a row at the END of table using HTML Table Class - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forumdisplay.php?fid=22)
+--- Thread: add a row at the END of table using HTML Table Class (/showthread.php?tid=51597)



add a row at the END of table using HTML Table Class - El Forum - 05-10-2012

[eluser]Unknown[/eluser]
Is it possible to add a row using
Code:
$this->table->add_row();
at the END of table that is generated by
Code:
$this->table->generate();
?


add a row at the END of table using HTML Table Class - El Forum - 05-10-2012

[eluser]CroNiX[/eluser]
Why not just add your new row directly to the end of the array that you are passing to the table class?