I have data coming from my model into this Controller
function index() {
$this->load->model('work_m');
$data = array();
$config['base_url'] = base_url().'index.php/work/index/';
$config['total_rows'] = $this->db->count_all('work');
$config['per_page'] = '10';
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$this->pagination->initialize($config);
$data['result'] = $this->work_m->get_records($config['per_page'],$this->uri->segment(3));
$data['title'] = 'Page Display';
$data['content'] = 'todo/work_display';
$this->load->view('template3', $data);
}
I need to create a table(using the HTML Table Class) with the following links in the cells(this is done by hand the old way and is in my view)
<td width="8%"><?php echo anchor("work/fill_form/$row->id", $row->id);?></td>
<td width="10%"><?php echo $row->date; ?></td>
<td width="20%"><?php echo $row->title; ?></td>
<td width="47%"><?php echo $row->item = $this->typography->auto_typography($row->item);
How can I convert the data back in the controller to be able to use the table generate method? Using the "usual" php method creates a horrible table.