![]() |
pagination library issue - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived General Discussion (https://forum.codeigniter.com/forumdisplay.php?fid=21) +--- Thread: pagination library issue (/showthread.php?tid=40426) |
pagination library issue - El Forum - 04-08-2011 [eluser]Unknown[/eluser] Hi, I was having an issue with Pagination library. my page url was /controller/method.html. when I wrote the following code: Code: $this->load->library('pagination'); I was getting links like: /controller/method.html/20 /controller/method.html/40 and they were not working. after lots of trials and errors, I got it working this way: Code: $this->load->library('pagination'); Now the url is like: /controller/method/XX.html. XX is replaced by starting number like 20, 40 etc. Everything is working as expected but I want to know whether is this the correct way of doing this or there are others best ways of handling this? Thanks in advance pagination library issue - El Forum - 04-10-2011 [eluser]web-johnny[/eluser] I actually worked with url_suffix before 1 year and it was confusing. When I started not to use it my life get's easier. There is no reason to use url_suffix = '.html' . So a better way to do this work ( and right ) is to not use url_suffix :-) . You will not ever have problem with paging, site_url , parameters of functions etc etc.... pagination library issue - El Forum - 04-10-2011 [eluser]InsiteFX[/eluser] CodeIgniter - Pagination Example InsiteFX |