[eluser]umefarooq[/eluser]
im trying to use CI pagination and its creating pagination but facing one problem is that when i move from page 1 to 2 it not showing link on 1 and also not showing first and < links always showing > and last> links and 1 is always without link here is my line of codes which im using.
Code:
$this->load->library('pagination');
$config['base_url'] = base_url().'index.php/admin/content/view';
$config['total_rows'] = $this->contentmodel->getCount('wm_content');
$config['per_page'] = '5';
$this->pagination->initialize($config);
$data['count'] = $this->uri->segment(4);
$data['page'] = $this->pagination->create_links();;
$data['rows'] = $this->contentmodel->getContents('wm_content',$config['per_page'],$data['count']);
any body has solution to this problem