Welcome Guest, Not a member yet? Register   Sign In
How Do I get Pagination To Show The First Page Number In The Default URL Using Pagination
#1

[eluser]gojo[/eluser]
When a user clicks a url that's paginated for the first time, the url doesn't show the page number. If they click the pagination and go to the next page it shows page 2, if they click page 1 it then shows page one. How do I get it to show page 1 when the user first goes to that page?
Thanks Gary
#2

[eluser]joergy[/eluser]
Read the docs
http://localhost/CI/libraries/pagination.html
about "use_page_numbers"
As far as I remember the first page can be reached with a last segment set to 1
But be careful, test extreme cases, IMHO this offset and paging handling is always upsetting my mind ;-)




Theme © iAndrew 2016 - Forum software by © MyBB