Call of paginations returns 404 - Printable Version +- CodeIgniter Forums (https://forum.codeigniter.com) +-- Forum: Using CodeIgniter (https://forum.codeigniter.com/forumdisplay.php?fid=5) +--- Forum: General Help (https://forum.codeigniter.com/forumdisplay.php?fid=24) +--- Thread: Call of paginations returns 404 (/showthread.php?tid=78349) |
Call of paginations returns 404 - cdio - 01-06-2021 Hello, I am a beginner, and want to get the following tutorial running: https://www.webslesson.info/2018/12/ajax-codeigniter-product-filter-with-pagination.html Working Demo: http://demo.webslesson.info/codeigniter-demo/product_filter When clicking on a checkbox there is a successfull post to http://demo.webslesson.info/codeigniter-demo/product_filter/fetch_data/1 I downloaded codeIgniter 3 and copied the sources of the website in the respective folders. The db runs correctly. When I click on a checkbox on localhost, there is a 404 response to the post http://localhost/codeigniter/product_filter/fetch_data/1 I don't understand where/how ...product_filter/fetch_data/1 is created There were some issues with: PHP Code: <link href = "<?php echo base_url(); ?>asset/jquery-ui.css" rel = "stylesheet"> PHP Code: $autoload['helper'] = array('url'); When removing 'url' from autoload.php, klicking on a checkbox does not create a post. routes.php PHP Code: $route['default_controller'] = 'Product_filter'; config.php PHP Code: $config['base_url'] = 'http://localhost/codeigniter'; Can you help me understand, where/how ... /product_filter/fetch_data/1 is created? Thanks! RE: Call of paginations returns 404 - kleber - 01-17-2021 Hi. I don't know if I understand your question correctly. I imagine you created the product_filter controller as mentioned in the tutorial. And put it inside the 'controllers' folder. If so, i think you should include index.php in your base_url. |