Welcome Guest, Not a member yet? Register   Sign In
Codeigniter Pagination Links Problem
#1

[eluser]Ifan Yozari[/eluser]
I am using codeigniter and its pagination class. It has a problem and it looks something like this:

Quote: 1<br>
2<br>
next last

Here is my code for controller:

Quote:
Code:
$this->db->select('*');
        $this->db->from('subkategori');
        $getData = $this->db->get('');
        $a = $getData->num_rows();
        $config['base_url'] = site_url().'/admin/seesubcategory/'; //set the base url for pagination
        $config['total_rows'] = $a; //total rows
        $config['per_page'] = '12'; //the number of per page for pagination
        $config['uri_segment'] = 3; //see from base_url. 3 for this case
        $this->pagination->initialize($config); //initialize pagination
        $config['num_tag_open'] = '<div id="pagination">';  
        $config['num_tag_close'] = '</div>';

i have this code as my view:

Quote:
Code:
&lt;?php echo $this->pagination->create_links(); ?&gt;

and here is my css:
Quote:
Code:
#pagination a, #pagination strong {
  background: #e3e3e3;
  padding: 4px 7px;
  text-decoration: none;
  border: 1px solid #cac9c9;
  color: #292929;
  font-size: 13px;
}

#pagination strong, #pagination a:hover {
  font-weight: normal;
  background: #cac9c9;
         display: inline-block;
}

can anyone tell me what i have to do to make the page link can be in one line.<br>
Thanks all for any help.




Messages In This Thread
Codeigniter Pagination Links Problem - by El Forum - 09-27-2012, 02:59 AM
Codeigniter Pagination Links Problem - by El Forum - 09-27-2012, 04:58 AM
Codeigniter Pagination Links Problem - by El Forum - 09-27-2012, 07:15 AM
Codeigniter Pagination Links Problem - by El Forum - 09-27-2012, 09:17 AM
Codeigniter Pagination Links Problem - by El Forum - 09-28-2012, 07:02 AM
Codeigniter Pagination Links Problem - by El Forum - 09-28-2012, 08:17 AM



Theme © iAndrew 2016 - Forum software by © MyBB