CoolBrew User Guide Version 1.3
Based on CodeIgniter Version 1.5.4


Multiple Websites

CoolBrew was designed from the beginning to be used with multiple websites. The idea is fairly simple: you detect which website is using the system by looking at the domain name and then set the site's root directory, site ID and a few other things. You then use that information to customize what data is returned from the database, what views are displayed, and myriad other details.

Modules that are written for CoolBrew need to be designed with this multiple-website ability in mind. Database tables need to include support for recording the Site ID and views need to be designed to be as flexible as possible.