Multi Company Site

General discussions related to php

Moderators: egami, macek, gesf

Post Reply
New php-forum User
New php-forum User
Posts: 7
Joined: Fri Oct 12, 2012 5:33 am

Sat Oct 13, 2012 5:17 am

I have a pure php site where you need to login to see the info (e.g. its forum like system) , the system has users and groups with permissions. However, I want this system to serve different companies, so each company access the site and see only its data. The common way I did it is replicating the whole code and DB and just install it several times on my sub domains. I wonder if there is a best practice so I can install it only once somehow and make sure each company see only its stuff and can admin it.

php-forum Fan User
php-forum Fan User
Posts: 973
Joined: Mon Oct 01, 2012 12:32 pm

Mon Oct 15, 2012 11:41 am

use control fields, like 'parent','company', or 'instance', to filter results. that way you've got one table for all users for example, but each user has a 'parent' or 'company', and a user list will only show the ones related. make sense?

Post Reply
  • Information
  • Who is online

    Users browsing this forum: No registered users and 2 guests