Welcome Guest, Not a member yet? Register   Sign In
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.




Theme © iAndrew 2016 - Forum software by © MyBB