sarvan75 / yii-user-management

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

CWebUser and its behaviors do not have a method or closure named "isAdmin". #167

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
I did a fresh installation. ANd installed YII-USER-MANAGEMENT module

It installed file. But now when I am opening the url 
http://localhost:8888/yii_app1/index.php?r=user/login

I am getting the error attached in the file.

Thanks in advance,
Hitesh

Original issue reported on code.google.com by hitesh.w...@gmail.com on 3 Nov 2011 at 9:46

Attachments:

GoogleCodeExporter commented 9 years ago
Any suggestions how to fix this? This module is useless otherwise. All google 
gives me, is others with the same problem, also being ignored by the developers.

Original comment by hippy...@gmail.com on 28 Dec 2011 at 6:19

GoogleCodeExporter commented 9 years ago
The problem could be one of those two options:
1) You didn't put this source code bellow in your component in file main.php

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

2)You might have another daclaration of this components' array in your source 
code.

I hope this could help.

Original comment by adle...@gmail.com on 28 Dec 2011 at 9:18

GoogleCodeExporter commented 9 years ago
This did help!

Original comment by ayodele....@svgcc.vc on 6 Mar 2012 at 5:25