Create table_maker_helper.php
Create table_maker_helper.php

This helper can generate html table block code once you supply the table headers and table body fields.

Usage in a controller test function

public function test()
{
	$this->load->helper('table_maker');
        $table_head = array('Id', 'Name');
        $table_body = array(array('1', 'Jon'), array('2', 'Alex'));
	echo make_table($table_head, $table_body);
}
longwapps/Codeigniter