Paging URI |
[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
[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"; |
Welcome Guest, Not a member yet? Register Sign In |