Welcome Guest, Not a member yet? Register   Sign In
pagging css not working
#1

[eluser]hamzakhan[/eluser]
my pagging css not working. life if i am on page 2 it is still showing me page one bold.
plz help

Code:
controller
=====
                $this->load->library('pagination');
        $config['base_url'] = base_url() . 'admin/contactus/display/index/';
        $config['total_rows'] = $this->db->count_all('cs_contactus');

        $config['per_page'] = 10;
        
        $this->pagination->initialize($config);


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

Code:
model
======
    function get_contactus($limit, $offset123)
    {  // get contact us      
       $query = $this->db->get('cs_contactus',$limit, $offset123);        
      return $query->result();
    }
#2

[eluser]Flemming[/eluser]
this problem is usually caused by CI not guessing the uri segement that contains that pagination offset correctly.

try setting:
Code:
$config['uri_segment'] = 5;


I'm assuming you ARE passing the offset as a URI segment?
#3

[eluser]hamzakhan[/eluser]
[quote author="Flemming" date="1275596330"]this problem is usually caused by CI not guessing the uri segement that contains that pagination offset correctly.

try setting:
Code:
$config['uri_segment'] = 5;


I'm assuming you ARE passing the offset as a URI segment?[/quote]


thank you so much for your help
my problem is solved
#4

[eluser]Flemming[/eluser]
you're welcome :-)




Theme © iAndrew 2016 - Forum software by © MyBB