Welcome Guest, Not a member yet? Register   Sign In
I have some weird pagination bug.
#1

[eluser]loathsome[/eluser]
Hi there. I have the following code

Code:
$this->load->library('pagination');

  $config['uri_segment'] = 2;
  $config['base_url'] = site_url() . '/browse';
  $config['total_rows'] = $this->ContentMod->total_rows();
  $config['per_page'] = 3;

  $this->pagination->initialize($config);
  
  $data['pagination_links'] = $this->pagination->create_links();

This code worked great, until today when I was going to browse some pages. Now, all of a sudden, the output of 'pagination_links' is http://devel/zaz/browseAMPper_page=6

I've tried to debug this, no luck. What's happened? What have I done to cause this?

Thanks!
#2

[eluser]Michael Wales[/eluser]
Have you turned enabled query strings within config.php or made any other changes you can think of?
#3

[eluser]loathsome[/eluser]
Ah, as a matter of fact I have enabled query strings. Why does this affect the pagination?

Anyway, thanks a lot!
#4

[eluser]loathsome[/eluser]
Anyone? :-) Is it not possible to use the pagination library and query strings at the same time?
#5

[eluser]tom_h[/eluser]
On a similar subject, I get the same AMper_page=... etc but I have

$config['enable_query_strings'] = FALSE;

Any ideas?




Theme © iAndrew 2016 - Forum software by © MyBB