YiiHaa Webdevelopment blog about Yii-framework and more


Models and multiple database connections

Posted by martijn

By default, Yii uses the 'db' component for the interaction between your model and database. But Yii also supports multiple database connections. To use multiple database connections requires come configuration. In this blog I will explain how to configure multiple databases, preparing your models and use gii for creating models from all databases.