Controller ajax request |
Hi guys im new to codeigniter im still figuring out things here. So i have a problem about the ajax request it seem that the controller is not accepting the ajax request. I`m codeigniter 4.0 by the way. I have search a lot of material in the internet and youtube but still nothing works.
So heres the code in the view folder named layout.php Code: <!DOCTYPE html> PHP Code: <?php Code: $routes->get('/', 'Home::index'); Now what I`m doing here is just trying to test if ajax works and return something. If I uncomment the form tag in the layout file the request works fine but I need the request given by ajax not in the form tag so I wont use it but if I use the ajax it wont respond anything and there is no error like in ci4 and the jquery. But the weird thing is that when I use post man and send ajax request it works perfectly fine. Can someone point out what I`m missing here? |
Messages In This Thread |
Controller ajax request - by jameslatajan1233 - 07-25-2022, 08:39 PM
RE: Controller ajax request - by includebeer - 07-26-2022, 06:24 AM
RE: Controller ajax request - by ozornick - 09-23-2022, 06:29 AM
RE: Controller ajax request - by HumeleJotesane - 09-26-2022, 03:34 AM
RE: Controller ajax request - by MatrickEganlan - 11-13-2022, 08:58 PM
RE: Controller ajax request - by InsiteFX - 11-13-2022, 11:29 PM
|