Welcome Guest, Not a member yet? Register   Sign In
Pagination config file having no effect
#7

[eluser]surfgatinho[/eluser]
This is what I have in my controller:
Code:
// load pagination class
    $this->load->library('pagination');
    
    $config['base_url'] = site_url('/members/index');
    $config['total_rows'] = $this->db->count_all('fa_user');
    $config['per_page'] = '10';
    $config['uri_segment'] = '3';
    
    

    $this->pagination->initialize($config);

In the view:
Code:
<?=$this->pagination->create_links();?>

And here is how the config file is laid out in config/pagination.php:
Code:
$config['full_tag_open'] = '<ul id="pagination">';
//The opening tag placed on the left side of the entire result.

$config['full_tag_close'] = '</ul>';
//The closing tag placed on the right side of the entire result.

//Customizing the First Link
$config['first_link'] = '&lt;&lt;';
//The text you would like shown in the "first" link on the left.

Pagination itself works fine. And AFAIK the settings from the config file should be pulled automatically. That's the way it seems to work on my other sites.
Just can't figure out what I'm doing wrong here


Messages In This Thread
Pagination config file having no effect - by El Forum - 06-26-2009, 11:17 AM
Pagination config file having no effect - by El Forum - 06-26-2009, 11:38 AM
Pagination config file having no effect - by El Forum - 06-26-2009, 12:01 PM
Pagination config file having no effect - by El Forum - 06-26-2009, 12:54 PM
Pagination config file having no effect - by El Forum - 06-26-2009, 01:49 PM
Pagination config file having no effect - by El Forum - 06-26-2009, 02:19 PM
Pagination config file having no effect - by El Forum - 06-26-2009, 02:26 PM
Pagination config file having no effect - by El Forum - 06-26-2009, 03:26 PM
Pagination config file having no effect - by El Forum - 06-27-2009, 01:45 AM



Theme © iAndrew 2016 - Forum software by © MyBB