12-29-2019, 07:27 PM
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.
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.