I am using CodeIgniter 1.7 and I am facing problem with Pagination.
I was implement pagination successfully and tested it perfectly in my localhost. But when
I was upload all files on my webserver at that time I found errors when I am trying to access different pages from the footer links.
Following are my piece code for pagination.
$config['base_url'] = base_url().'index.php/training/index/';
$config['total_rows'] = $this->db->count_all('training');
$config['per_page'] = '5';
$config['first_link'] = 'First';
$config['last_link'] = 'Last';
$config['full_tag_open'] = '<p>';
$config['full_tag_close'] = '</p>';
$offset = (int)$this->uri->segment(3);
$offset = ( ! is_numeric($offset) || $offset < 1) ? 0 : $offset;
For live link for the pagination you can checkout below mentioned link.
I was try out lots of things but not able to get solution for it.
Please help me to solve this problem. If you need any extra information then please let me know about it.