thyseus / yii-user-management

a user management module collection for the yii framework
186 stars 122 forks source link

YumWebUser.controllerMap" is not defined. #136

Closed nagarajpg closed 11 years ago

nagarajpg commented 11 years ago

Hi,

I am getting the error "YumWebUser.controllerMap" is not defined." How to solve this?

belokonm commented 11 years ago

Do you have next part in main.php (config)?

....... 'components'=>array( 'user'=>array( 'class' => 'application.modules.user.components.YumWebUser', 'allowAutoLogin'=>true, 'loginUrl' => array('//user/user/login'), ), 'cache' => array('class' => 'system.caching.CDummyCache'),

If yes, on which place you see such message?

jsdraven commented 11 years ago

I have those same settings in their proper place within the main.php config file. When I launch the site I get the following my self

Property "YumWebUser.debug" is not defined.

/Users/justins/Projects/yii/framework/web/auth/CWebUser.php(154)

I with loads of debug info (I am working with a development environment).

nagarajpg commented 11 years ago
'components'=>array(
        'user'=>array(
            // enable cookie-based authentication
            'class' => 'application.modules.user.components.YumWebUser',
                    'allowAutoLogin'=>true,
                    'loginUrl' => array('//user/user/login'),

                    ),
        'cache' => array('class' => 'system.caching.CDummyCache'),

It was a config error, Now It is working fine. I mistakenly added 'class' => 'application.modules.user.components.YumWebUser', in user array of module section. I removed it then it worked.

Thanks for the reply :)