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/forum-20.html)
+--- Forum: Archived Libraries & Helpers (https://forum.codeigniter.com/forum-22.html)
+--- Thread: add a row at the END of table using HTML Table Class (/thread-51597.html)



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?