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