You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
You may face a situation when you need to access to a configurable module's property from everywhere and you don't have an instance of this module's class.
MultiActiveRecord is an extension that add support for multiple database connection for your application.
This method was inspirated on the excellent text about different environments available at http://www.yiiframework.com/doc/cookbook/32/
Lets say we have 3 modules (customer, user, admin) in an application and we need, separate logins for each module.
What would you do if you want/need to have a different than the main database connection in an module's models?
在经过畅K网的实战后,总结一下在Yii的项目中会经常用到的组件和一些基本的使用方法,分享给大家,同时也给自己留个备忘录,下面我以代码加图片说明.
The Yii documentation states:
If you want to add module based login to a site without using RBAC, please follow these guidelines.