Pagination and page number.

#1
[eluser]jedre[/eluser]
Hello!

Why CI generate links in pagination as:
Code:
page_number - 1

For example my URL looks like: http://mypage.com/articles/1/page/2
When I look on URL I think I'm on second page, it's not true I'm on third page!!

Can I change it?

#2
[eluser]Glen Swinfield[/eluser]
No, because page 1 starts from record 0, that is how pages are calculated. You could rewrite the pagination class and change the way it works, but I wouldn't bother.


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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