Jump to content

Codeigniter: architecture


lucashermsen

Recommended Posts

Dear forum members,

 

I am working on a website in CodeIgniter that will offer multiple unions their own member system. They will all use virtually the same system, but they will have their own database connected to it. Besides that, some configuration files and view-files will be different per union.

 

Should I create a separate application-folder for each union? And maybe use packages to link them? Or is it possible using just one application for this?

 

Regards

Lucas

Link to comment
https://forums.phpfreaks.com/topic/272757-codeigniter-architecture/
Share on other sites

You can create multiple applications while sharing common resources with CodeIgniter. Basically, just make each "branch" its own directory in /application. You can create a "common" in /application in which to share things like Models or Libraries that you might need, so that you don't have to duplicate the same Library in multiple places.

 

I actually did something similar for a project recently. It worked out pretty well, but I did have to modify the system/core/Loader.php file to make the Loader class check the "common" directory when loading resources.

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.