CodeIgniter Forums
HTML Table library, way to autoconfig? - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: HTML Table library, way to autoconfig? (/thread-14039.html)



HTML Table library, way to autoconfig? - El Forum - 12-16-2008

[eluser]Jazmo[/eluser]
I use same template between tables in my site, so every time i create table (in different Controllers) i need to specify the template.
Is there a some way to do that in config/table.php ? If there is, can you give me an example and update User Guide accordingly. I think this is essential information.

If there's no way to use autoconfiguration, maybe some other way, any suggestions?


HTML Table library, way to autoconfig? - El Forum - 12-16-2008

[eluser]GSV Sleeper Service[/eluser]
you could 'extend' the table library (http://ellislab.com/codeigniter/user-guide/general/creating_libraries.html) and add your default template to a new method within that class.


HTML Table library, way to autoconfig? - El Forum - 12-20-2008

[eluser]NBrepresent[/eluser]
To get around this same issue I simply copied Table.php from /system/libraries to /system/application/libraries and then modified the default template (starts at line 411).


HTML Table library, way to autoconfig? - El Forum - 06-07-2012

[eluser]kesty[/eluser]
hmmmmmmmm