is CodeIgniter a good choice for Multi-site ? |
First of all, it is very easy to make two different websites use the same database. CI has a file named application/config/database.php. You can setup multiple configurations, or two CI-installations can both refer to the same database.
Keep in mind that some hosting providers only allow access to databases from URL's on their own environment. When both your URL's are hosted by the same provider, you don't have a problem. Next question is: can you use one CI-installation to manage two different websites? It depends. If both URL's are on the same hosting environment, they probably have their own folder inside the webspace that your provider has given you. It is possible to put your CI-installation on the same level, rather than inside each website's folder. Code: toplevel folder To present different content to your users, depending on the url they are using, you must check the url in all your controllers. Hope this will help you. |
Messages In This Thread |
is CodeIgniter a good choice for Multi-site ? - by akharraz - 08-11-2015, 05:37 AM
RE: is CodeIgniter a good choice for Multi-site ? - by Wouter60 - 08-12-2015, 03:42 AM
RE: is CodeIgniter a good choice for Multi-site ? - by akharraz - 08-12-2015, 10:05 AM
RE: is CodeIgniter a good choice for Multi-site ? - by Wouter60 - 08-13-2015, 01:02 AM
RE: is CodeIgniter a good choice for Multi-site ? - by akharraz - 08-13-2015, 02:56 AM
RE: is CodeIgniter a good choice for Multi-site ? - by phplaw - 08-22-2015, 10:14 AM
RE: is CodeIgniter a good choice for Multi-site ? - by akharraz - 08-24-2015, 10:15 AM
RE: is CodeIgniter a good choice for Multi-site ? - by musheertm - 09-10-2015, 03:03 AM
|