'Using AJAX on a file from your own library in code igniter 4
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 directory (photo 2)?
enter image description here photo 2: enter image description here
Solution 1:[1]
as you mentioned this is a custom library so if u want to user your library classes first make a controller (or use one you have) to call it from there .
and if u have file for that library you Must put it on public folder otherwise make separate library in whole new different project and add it in https://packagist.org/ then add it to your project with composer .
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Ali Sheykhi |
