2014-05-13 20 views
1

您好我正在實施RBAC到應用程序。我設置身份驗證經理CDbAuthManager:使用「CDbAuthManager」生成異常「CPhpAuthManager」未定義

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

      ), 

,當我使用 $權威性的Yii = ::應用程序() - > authManager;

它生成「屬性‘CPhpAuthManager.0’沒有定義」。

我檢查了數據庫連接,我能夠做的污物。我究竟做錯了什麼 ?

回答

0

我發現表名是區分大小寫的。修改後的表格名稱..所有的工作