문제

Hi I am tring to implement RBAC to an application . I set auth manager to CDbAuthManager:

'db'=>array(
        'connectionString' => 'mysql:host=localhost;dbname=blog',
        'emulatePrepare' => true,
        'username' => 'root',
        'password' => '',
        'charset' => 'utf8',
    ),
    'authManager'=>array(
                'class'>'CDbAuthManager',
                'connectionID' => 'db', 

            ),

and when I use $auth = Yii::app()->authManager;

it generates " Property "CPhpAuthManager.0" is not defined. "

I checked db connection and i am able to do crud . what am I doing wrong ?

도움이 되었습니까?

해결책

I found that tables names was case sensitive. modified tables names .. all worked

라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top