![]() |
Updated Table Class - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: Updated Table Class (/showthread.php?tid=36153) |
Updated Table Class - El Forum - 11-23-2010 [eluser]Media Gearhead[/eluser] I took some time to edit the table class for a project I have now. I figured it would be best to pass this along to the community. Simply change out your table library file to get support for the following. Additional Tags: Code: <thead></thead> Additional Method: $this->table->set_footer(); This works exactly the same as $this->table->set_heading(); Permits you to set the table heading. You can submit an array or discrete params: Code: $this->table->set_footer('Name', 'Color', 'Size'); Extended Template: Code: 'table_open' => '<table border="0" cellpadding="4" cellspacing="0">', Any questions please let me know but I think that it should be straight forward enough to work with. File is attached. Updated Table Class - El Forum - 11-23-2010 [eluser]InsiteFX[/eluser] Most of these have already been fixed in CI 2.0 Also you should extend the library not make changes to it! InsiteFX Updated Table Class - El Forum - 11-24-2010 [eluser]Media Gearhead[/eluser] I had a feeling that these would be setup in 2.0 I just needed it now. Also yes I know that extending the function is better than replacing it I just wanted to go quick and dirty. |