For a new application we are looking for a php web framework that supports multiple databases with the same schema/model. Every customer of us will become his own webserver with his own database. On top of this we want to develop a central administration app that works on all customer databases, which are all have the same schema/model. Does Yii support such a thing? If not, would it be easy to add this to the current Database/Active Record functionality?
Page 1 of 1
Multiple Databases with the same Model
#2
Posted 03 March 2010 - 05:21 AM
you can add function in your model like:
public function getDbConnection()
{
return Yii::app()->user->getState('myDbConnectionId');
}
Share this topic:
Page 1 of 1

Help













