I’m looking to try and use codeigniter with different domains all using the same code structure, within the code igniter framework.
The libraries, models and database should be the same across all the domains, the only difference should be the controllers and views that are used.
Preferably I would like to have a setup similar to this:
controllers/domain1.com/index.php
controllers/domain2.com/index.php
controllers/domain3.com/index.php
Does anyone have any experience modifying code igniter to work in this way?
Take a look at the loader class page in the manual and scroll down to the Application “Packages” part. Combine this with the part of running Multiple Applications you should be able to be running multiple sites, with the same models and configs and avoid duplicating your code.