CodeIgniter Forums
Multiple pagination - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forum-20.html)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forum-21.html)
+--- Thread: Multiple pagination (/thread-29778.html)



Multiple pagination - El Forum - 04-20-2010

[eluser]Suhas nazir[/eluser]
How to implement multiple pagination in a single page???????


Multiple pagination - El Forum - 04-24-2010

[eluser]theprodigy[/eluser]
Have you tried something like:
Code:
$this->load->library('pagination');

//first set
$config['base_url'] = 'http://example.com/index.php/test/page/';
$config['total_rows'] = '200';
$config['per_page'] = '20';

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

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

//second set
$config['base_url'] = 'http://example.com/index.php/test/second_set/';
$config['total_rows'] = '400';
$config['per_page'] = '5';

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

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