Codeigniter 4 ajax post results in 404 error |
I am trying to handle a form submit using the JQuery ajax function on localhost xampp. However, the following always results in a 404 page not found error:
Code: $(document).on("click", ".iconsTop .iconst", function (e) { Controller: PHP Code: class App_home extends BaseController Router PHP Code: use CodeIgniter\Router\RouteCollection; After submitting the form, I always get the following error in Google Chrome's page inspector: Quote:jquery-3.7.1.min.js:2 POST http://localhost/app/public/filter 404 (Not Found) Quote:404 Controller or its method is not found: Filter::index |
Messages In This Thread |
Codeigniter 4 ajax post results in 404 error - by Binboy - 05-21-2024, 06:57 AM
RE: Codeigniter 4 ajax post results in 404 error - by pippuccio76 - 05-21-2024, 10:28 AM
RE: Codeigniter 4 ajax post results in 404 error - by Binboy - 05-21-2024, 12:29 PM
RE: Codeigniter 4 ajax post results in 404 error - by demyr - 05-21-2024, 02:19 PM
RE: Codeigniter 4 ajax post results in 404 error - by InsiteFX - 05-21-2024, 10:43 PM
|