Paging URI - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Archived Discussions (https://forum.codeigniter.com/forumdisplay.php?fid=20) +--- Forum: Archived Development & Programming (https://forum.codeigniter.com/forumdisplay.php?fid=23) +--- Thread: Paging URI (/showthread.php?tid=12037) |
Paging URI - El Forum - 10-03-2008 [eluser]Unknown[/eluser] Hi, I'm having problem on handling pagination URI segments. It behaves nice when it recognized the page using a segmented value, but for the first page without any value in the segment it returns error. For example : http://localhost/ci/request.html/20 (this uri behaves correctly) http://localhost/ci/request.html (this returns a '404 Page Not Found' message) Here are the details of my configurations and codes. Please advice what went wrong ? routes.php Code: $route['default_controller'] = "maincontroller"; config.php Code: $config['base_url'] = "http://localhost/ci/"; request.php controller Code: $this->load->library('pagination'); Thanks, JarBis Paging URI - El Forum - 10-03-2008 [eluser]gRoberts[/eluser] could it be because of the .html extension is missing from the route? Code: $route['request'] = "maincontroller/request"; to Code: $route['request.html'] = "maincontroller/request"; |