![]() |
MY_Table - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forum-23.html) +--- Thread: MY_Table (/thread-21063.html) |
MY_Table - El Forum - 07-29-2009 [eluser]briguy[/eluser] I made a small change to the Tables Library that allows you to assign an anchor to to a specified column. This allows you to make quick and dirty drill down functionality. There is no error checking and a lot more can be done, however I found in useful and though I would post. In the comments below, you will see the code necessary to put in the view template. Basically, you create a Table Template and add extra fields that indicate which columns should become a link. This works with a database result set not an user created Array. Installation: Save the below code as My_Table.php and put in your application/libraries directory. Follow the direction below on how to configure the table template in the view. Brian EDIT 07/30/2009: I changed the code slightly because it was displaying wrong as. $this->path was causing some problem in displaying the code. Code: <?PHP |