Welcome Guest, Not a member yet? Register   Sign In
I have problem with Pagination Library (C.I Version 2.2.0)
#1

[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.




Theme © iAndrew 2016 - Forum software by © MyBB