Welcome Guest, Not a member yet? Register   Sign In
paginatiion problem
#1

[eluser]dimis[/eluser]
I have a problem with the urls of paginations (1,2 etc)
When the url is
/index.php/site/index all is ok ,also when I push the 2 page link and the page go to /site/index/3/1
But when I push the ling for the first pages and the url is site/index/3/
The links show that we are at page 2 and not at page 1.What is wrong, the queries seems to be ok
I have the code
Code:
$this->load->library('pagination');
        $config['uri_segment'] = 3;
        $this->data['catnum']= $this->ccats->num(intval($id));;
        $config['per_page'] = '1';
        $config['base_url'] = site_url()."/site/index/".$this->data['catnum']."/";
        $config['total_rows'] = $this->carts->count(intval($id));

        $this->pagination->initialize($config);
         $this->data['links']= $this->pagination->create_links();




Theme © iAndrew 2016 - Forum software by © MyBB