views:

117

answers:

1

I'm looking into developing a multi-tenant SaaS application, and I found several sites that describe a solid way to separate the data using tenantIDs and updateable views. e.g. This blog post

It all hinges on the ability to have your user accounts authenticated from a master users table and then having their respective database connections use those user-specific credentials. This way, the views can pull the userid and map it to the tenantID to display that user's view. However, most PHP frameworks tend to be very static when it comes to database connections (stored in text config files). They appear to be at odds.

Does anyone know: a) how to make CodeIgniter handle this gracefully? b) a different PHP framework that might?

+1  A: 

Zend Framework. http://framework.zend.com/manual/en/learning.multiuser.intro.html

shurik2533
http://framework.zend.com/manual/en/zend.db.adapter.htmlSo I'm looking at this component, and I'm wondering *how* to implement a db connection with per-user credentials to accomplish the strategy outlined in the blog post link above. Forgive me if it's obvious to those who know, but I'm struggling with that aspect.
Brad G