Jump to content

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.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.