CodeIgniter Forums
table->add_row doesn't work - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23)
+--- Thread: table->add_row doesn't work (/showthread.php?tid=46390)



table->add_row doesn't work - El Forum - 10-30-2011

[eluser]Unknown[/eluser]
Between calls to table->add_rows(), the data in table->rows[] does not persist.
If I call table->add_row() multiple time I still end up with count($this-rows) being zero.
Therefore when I call table->generate() I get "Undefined Table Data" because both $heading and $rows are empty.
I have checked the the content of $rows right before add_rows() returns and the data is there, but by the time the function is called again the data is gone.

I have checked and the class has been loaded and constructed.

Can a server setting have anything to do with this?

Any help is appreciated.