CodeIgniter Forums
Using AJAX on a file - 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: Using AJAX on a file (/showthread.php?tid=82422)



Using AJAX on a file - FilembarEliJeevan - 07-08-2022

I am creating a simple API to call methods from my php classes using JQuery and AJAX. I have a question how to enter the path in AJAX to refer to a given file from the Libraries echatspin echat directory


RE: Using AJAX on a file - includebeer - 07-12-2022

You can't access a file from the Libraries directory like that. Every requests needs to go through a controller. If you're not familiar with CI, take a look at the tutorial in the user guide.