I want to user Yii User. I had no issues with my app prior to this.
I created a modules directory under protected.
I have copied all the files to: modules/user
I have copied the following code in config/main
#…
// autoloading model and component classes
'import'=>array(
'application.models.*',
'application.components.*',
'application.modules.user.models.*',
'application.modules.user.components.*',
),
#…
'modules'=>array(
'user',
),
#…
// application components
'components'=>array(
#…
'user'=>array(
// enable cookie-based authentication
'allowAutoLogin'=>true,
'loginUrl' => array('/user/login'),
),
#…
),
#…
When i go to my app, i get the following error message: DbConnection.connectionString cannot be empty.
If i remove the pasted code above in config/main, the error goes away. Any advice? Any known issues?