Best way to share files among different CI projects, i.e. helpers, libraries |
I have 3 projects that will each be using a REST API library I customized based on the CI Rest API Library project. It has it's own helpers, models and Libraries. I don't want to have the files spread out in the app folder, some in the helpers directory, the libraries directory, etc.
So I created a folder in third_party and used the same structure as the app folder: libraries models helpers etc., with my custom code. If I want to load them however, I am not sure how I would go about doing that. Would I just have to do the usual "require_once" approach in the construct of the controller which will require them? Or is there a way to load->helper, for example, and specify the third_party directory? I am not sure if codeigniter will automatically find them. |
Messages In This Thread |
Best way to share files among different CI projects, i.e. helpers, libraries - by deltatangodt - 12-29-2019, 07:27 PM
RE: Best way to share files among different CI projects, i.e. helpers, libraries - by snelledre - 12-30-2019, 12:26 AM
RE: Best way to share files among different CI projects, i.e. helpers, libraries - by abrkof - 12-30-2019, 09:15 AM
|