• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pagination - first page's link doesn't work, why?

#1
[eluser]peekk[/eluser]
Hello, I use pagination library on my site, my config is here:
Code:
$data['url_keyword'] = url_title($keyword, '_');
$config['base_url'] = base_url().'image/'.$data['url_keyword'].'/';
$config['per_page'] = 1;
$config['uri_segment']=3;

my urls are: mysite/image/keyword/1 (page2), mysite/image/keyword/2 (page3), mysite/image/keyword/3 (page4), mysite/image/keyword/4 (page5)

When I'm on page 2 (mysite/image/keyword/1) and click previous - it gets me into mysite/image/keyword/ - which doesnt work, but mysite/image/keyword/0 WORKS. Library just doesn't add zero at the end of url.

how to fix it?


Messages In This Thread
Pagination - first page's link doesn't work, why? - by El Forum - 08-08-2012, 06:21 AM
Pagination - first page's link doesn't work, why? - by El Forum - 08-08-2012, 10:43 PM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2021 MyBB Group.