The table at my home isnt built to do paging but other pages are, i got the
following code from another controller, not the HOme page controller
//Pagination
$this->load->library('pagination');
$config['base_url'] = site_url('project/category/'.$category_name);
$config['total_rows'] = $projects->num_rows();
$config['per_page'] = $page_rows;
$config['cur_page'] = $page;
$this->outputData['page'] = $page;
$this->pagination->initialize($config);
$this->outputData['pagination'] =
$this->pagination->create_links(false,'project');
$this->load->view('project/listProjects',$this->outputData);
I'm thinking if i place this code in my home page controller, will that
allow paging to work in my home page table through this code
<?php if(isset($pagination)) echo $pagination;?> (Used in some Views, not
home page)
Quite new to controllers :( Modifying Old code sample site Thanks! :)