HTML Table class? |
[eluser]anna16[/eluser]
Hi guys I followed the User Manual about the Table clas. and tested this codes below, Code: $this->load->library('table'); I don't understand why the output i iterated 3 times. Suggestion please. Thanks in advanced.
[eluser]anna16[/eluser]
by the way this is the output below, http://coder9.com/ci/ztest.php/site/index
[eluser]techgnome[/eluser]
I'm not sure what the problem is with it... the first array contains the column headers... Name, Color and Size... The next three arrays contain the data for each column. This should all be explained in the user guide for the table functions... is it not? -tg
[eluser]gyo[/eluser]
Can you post your 'site.php' controller? It looks like you're echoing something which creates the "headers already sent" PHP error.
[eluser]anna16[/eluser]
http://coder9.com/ci/ztest.php/site/sample1/ here, Code: <?php
[eluser]InsiteFX[/eluser]
Code: $data = array ( InsiteFX
[eluser]tonanbarbarian[/eluser]
take $this->sample1(); out of the constructor that is resulting in the table being generated at least twice [code] function __construct() { parent::Controller(); }[/code[
[eluser]anna16[/eluser]
@tonanbarbarian Thanks i remove it and it is working now fine. By the way can you explain why when i insert this code below, Code: $this->sample1(); inside the constructor why it iterate the output 3 times. Thanks in advanced.
|
Welcome Guest, Not a member yet? Register Sign In |