CodeIgniter Forums
I have problem with Pagination Library (C.I Version 2.2.0) - Printable Version

+- CodeIgniter Forums (https://forum.codeigniter.com)
+-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20)
+--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21)
+--- Thread: I have problem with Pagination Library (C.I Version 2.2.0) (/showthread.php?tid=60826)



I have problem with Pagination Library (C.I Version 2.2.0) - El Forum - 07-08-2014

[eluser]Tống Kiện Phi[/eluser]
This is my config:
Code:
$this->pagination->initialize(
array_merge(
  $this->config->item('pagination'),
  array(
   'total_rows' => $this->_data['contents']['total'],
   'per_page' => AUDIO_PER_PAGE
  )
)
);

config pagination (in config.php):

Code:
$config['pagination'] = array(
    'page_query_string' => TRUE,
    'query_string_segment' => 'page',
    'full_tag_open' => '<div id="pagination">',
    'full_tag_close' => '</div>',
    'anchor_class' => 'class="number" ',
    'cur_tag_open' => '<a class="number current">',
    'cur_tag_close' => '</a>',
    'next_link' => '&raquo;',
    'prev_link' => '&laquo;',
    'use_page_numbers' => TRUE,
    'num_links' => 4,
);

And i have link: http://domain.com/manager.html It's work well.
But when link is: http://domain.com/search.html?q=anh It's generate the pagination links become http://domain.com/search.html?page=1 , it's remove q param. How to config it's work well?

Thanks,

p/s: Sr, my english is not good.