D
D
damir_in2014-03-14 06:52:44
CodeIgniter
damir_in, 2014-03-14 06:52:44

How to change the path to the config folder, helpers, libraries, models in CodeIgniter?

Hello to all who responded.
Get down to business! I have two applications:
/apps/backend
/apps/frontend

Now I have to copy the same library classes, configs, etc. into these two folders. And this, as you understand, causes duplication - it is not convenient to do this.
As I would like to do, firstly, move the folders of the config, helpers, libraries, models into a separate folder - as, for example, done in the Codeingiter framework itself, where the main files are in the system
folder By the same principle, we will have a project_name folder , where lie our folders:
/project_name/config
/project_name/helpers
/project_name/libraries
/project_name/models

I would like to solve this problem, since the solution is quite elegant. If you have a better solution, just speak up! :)

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question