Pagination problem with first page link |
[eluser]afshin[/eluser]
Hi . For a period of time, I have been dealing with an issue in pagination class. The problem is that, everything with pagination is okay, except the link of page 1. All the links are like : http://example.com/method/page/2 http://example.com/method/page/3 ... but, when I want to go to the page 1, the link looks like : http://example.com/method/page/ and of course it looks somehow awkward. How can I fix this issue in pagination library?!
[eluser]afshin[/eluser]
The problem has been solved I changed my code to look like : My base_url was : Code: $config['base_url'] = base_url() . 'method/page/'; So, I changed the code like below to have the first URL as I wish : Code: $config['base_url'] = base_url() . 'method/page/'; |
Welcome Guest, Not a member yet? Register Sign In |