[eluser]Phil Norton[/eluser]
Hi
I've used the Pagination class dozens of times without a problem. 'Til now. And I can't figure out if I'm doing something stupid, or if there's something wrong somewhere.
Config is as follows:
Code:
$p_config['base_url'] = '/admin/competition/list_entries/' . $this->uri->segment(4) . '/page/';
$p_config['total_rows'] =$total_items;
$p_config['per_page'] = 4;
$p_config['uri_segment'] = $this->uri->segment(6);
$p_config['full_tag_open'] = '<p class="paging">';
$p_config['full_tag_close'] = '</p>';
The offsetting and limiting is working fine, but the links just don't change; they stay at
1 2 3 > with 1 always being highlighted and the next arrow will only ever point to page/4 so the class clearly thinks that it's constantly on the first set of results . I've printed the $p_config array to see what it's showing on this page: /admin/competition/list_entries/category_name_here/page/4 and it gives me:
Code:
[base_url] => /admin/competition/list_entries/age-20-24/page/
[total_rows] => 10
[per_page] => 4
[uri_segment] => 4
[full_tag_open] => <p class="paging">
[full_tag_close] => </p>
Which all looks fine to me. The controller is competition, and the function is list_entries (resides in the admin folder). Am I missing something? Why won't the links work as they should do??
Thanks
Phil