[eluser]markdeionwolf[/eluser]
Please help me with this code. it shows the link but the pagination doesn't work.thank you in advance.
class Parts extends Controller
{
function Parts(){
parent::Controller();
$this->load->database();
}
function index()
{
$config['uri_segment'] = 4;
$this->db->select(array('category', 'nmbr', 'description', 'severity_type', 'exp_type', 'cost'));
$this->db->order_by('category asc, description');
$params['parts'] = $this->db->get('database.table')->result_array();
$this->load->library('pagination');
$config['base_url'] = base_url().'index.php/files/parts/index';
$config['total_rows'] = count($params['parts']);
$config['per_page'] = '25';
$this->pagination->initialize($config);
$params['pagination'] = $this->pagination->create_links();
$this->load->view('files/parts_list_view',$params);
}