![]() |
How add links, anchors, etc,. to the HTML Table Class? - 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: How add links, anchors, etc,. to the HTML Table Class? (/showthread.php?tid=10251) |
How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-23-2008 [eluser]Asinox[/eluser] Hi, the HTML Table Class i think is wonderful, but, i want to ask, how ill add links , anchors, etc., to the data from html table class? thanks u How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-24-2008 [eluser]thinkigniter[/eluser] I don't know. I've never tried. How about this... Code: $this->table->set_heading('Name', 'Day', 'Delivery'); How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-24-2008 [eluser]Yash[/eluser] add this into constructor Code: $this->load->helper(array('html','url')); then in view $this->table->set_heading('Name', 'Day', 'Delivery'); $this->table->add_row(anchor('http://somesite.com/some.php', 'Yash');, 'Wednesday', 'Express'); //read url and html [url="http://ellislab.com/codeigniter/user-guide/"]user guide[/url] echo $this->table->generate(); How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-24-2008 [eluser]Asinox[/eluser] Thanks u, i readed a lot about html and url, but my question is about HTML Table, because ill renerate table from database, but in the user guide dont say how make links, o something with this generate data... ill try tu method's thanks again ![]() How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-24-2008 [eluser]Yash[/eluser] show me data u r getting from database. it's simple to use u will learn it fast. How add links, anchors, etc,. to the HTML Table Class? - El Forum - 07-24-2008 [eluser]Asinox[/eluser] i did it ![]() Code: function makeColumns(){ |