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

[eluser]Lazos[/eluser]
I have this code inside my controller.
In my CONFIG file I have $config['enable_query_strings'] = TRUE;
Even I write $config['page_query_string'] = TRUE or FALSE still at the end of the link I am getting /index.php/admin/adminlog/&per_page=20 which is wrong I thing.

How to fix it to get links like this /index.php/admin/adminlog/page/20
I can not change the one of the config file because most of my inks pass parameters like this adminlog?param=1

Code:
$config['per_page'] = '20';
        $this->adminlog = $this->adminlog_lib->getAllLogs($config['per_page'], $this->uri->segment(3));
        $count = $this->adminlog_lib->countLogs();
        $this->load->library('pagination');
        $config['base_url'] = base_url().'/index.php/admin/adminlog/';
        $config['total_rows'] = $count;
        $this->pagination->initialize($config);


Messages In This Thread
Pagination Problem - by El Forum - 11-30-2008, 08:30 AM
Pagination Problem - by El Forum - 12-01-2008, 10:04 AM
Pagination Problem - by El Forum - 12-20-2008, 09:16 PM
Pagination Problem - by El Forum - 12-21-2008, 01:50 AM
Pagination Problem - by El Forum - 12-21-2008, 07:02 AM
Pagination Problem - by El Forum - 01-25-2009, 04:18 AM
Pagination Problem - by El Forum - 01-25-2009, 07:46 AM



Theme © iAndrew 2016 - Forum software by © MyBB