Multisite with codeigniter HMVC |
12-05-2014, 10:51 PM
(This post was last modified: 12-05-2014, 11:06 PM by trentramseyer. Edit Reason: inserting code )
Really depends if they are running independently of each other as khalilhimura suggested you can just load different application folders per domain.
Or if you are doing a multi-site system that will grow dynamically, you can store the domain in the database table with the site information and look that up to get site information (make sure you index the domain field). All your tables will need a site_id of some sort to look up information. Something like below in model will let you look up. PHP Code: function site_lookup() |
Messages In This Thread |
Multisite with codeigniter HMVC - by sanjay - 11-07-2014, 05:21 AM
RE: Multisite with codeigniter HMVC - by gofrendi - 11-07-2014, 07:29 PM
RE: Multisite with codeigniter HMVC - by khalilhimura - 11-15-2014, 02:53 PM
RE: Multisite with codeigniter HMVC - by trentramseyer - 12-05-2014, 10:51 PM
|