sarvan75 / yii-user

Automatically exported from code.google.com/p/yii-user
0 stars 0 forks source link

Property "CWebUser.tableUsers" is not defined. #122

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1.Attempt to install the extension
2.View user/login page

I am gettting an error: Property "CWebUser.tableUsers" is not defined.

In my config/main.php 

'components'=>array(
        'user'=>array(
            // enable cookie-based authentication
            'allowAutoLogin'=>true,
            'loginUrl' => array('/user/login'),
            'tableUsers' => 'tbl_users', 
            'tableProfiles' => 'tbl_profiles', 
            'tableProfileFields' => 'tbl_profiles_fields', 
        ),

And: 

'db'=>array(
            'connectionString' => 'xxx',
            'emulatePrepare' => true,
            'username' => 'xxx',
            'password' => 'xxxx',
            'charset' => 'utf8',
            'tablePrefix' => 'tbl_',
        ),

Any thoughts? 

Original issue reported on code.google.com by sh...@mayzes.org on 16 Dec 2011 at 12:40

GoogleCodeExporter commented 9 years ago
Same issue here.

Original comment by jorgemar...@gmail.com on 28 Jan 2012 at 4:26

GoogleCodeExporter commented 9 years ago
This params for module
{{{
'modules'=>array(
        'user'=>array(
            'tableUsers' => 'tbl_users', 
            'tableProfiles' => 'tbl_profiles', 
            'tableProfileFields' => 'tbl_profiles_fields',
        ),
        ...
),
'components'=>array(
        'user'=>array(
            // enable cookie-based authentication
            'allowAutoLogin'=>true,
            'loginUrl' => array('/user/login'), 
        ),
        ...
),
}}}

Original comment by mish...@gmail.com on 29 Jan 2012 at 12:12