Welcome Guest, Not a member yet? Register   Sign In
Multiple sites, same codebase?
#3

[eluser]SneakyDave[/eluser]
the following method might be overkill if all of your restaurants are going to have the same function and use the same views, controllers, and databas, but its a pretty common setup.

What I've done in the past, is put the CI system folder outside of the root, such as if the restaurant.com's web root was:

/var/www/html/

I'd put the CI system folder in /var/www/

Then in /var/www/html/ you can have your "application" directories in there, named after the restauruant names

/var/www/html/joescrabs
/var/www/html/samsfish/

each of your restauruant folders is an "application" directory to CI, with its own configs, views, etc.

You will have to make adjustments in your application/config/config.php file to tell your app where CI is, and where your "application" folder is.


Messages In This Thread
Multiple sites, same codebase? - by El Forum - 08-11-2008, 12:15 AM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 03:20 AM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 02:49 PM
Multiple sites, same codebase? - by El Forum - 08-11-2008, 09:10 PM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 12:31 AM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 03:56 AM
Multiple sites, same codebase? - by El Forum - 08-12-2008, 04:13 AM
Multiple sites, same codebase? - by El Forum - 08-13-2008, 08:26 PM



Theme © iAndrew 2016 - Forum software by © MyBB