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