I am developing a SaaS application with multiple tenants, and I have found several sites that describe a reliable way to split data using tenantIDs and updatable views. For example This blog post
It all depends on the possibility of authenticating user accounts from the table of main users, and then these credentials for a specific user are used with their corresponding database connections. Thus, views can pull out the user ID and match it with the tenantID to display that user view. However, most PHP frameworks are typically very static when connected to a database (stored in text-based configuration files). They do not seem to agree.
Does anyone know: a) how to make CodeIgniter handle this gracefully? b) another PHP framework that can?
database php codeigniter multi-tenant
Brad g
source share