I am using Yiis role and permissions system in my app and I want to get the name of the assignment assigned to a user.
I am using this with no luck …
$auth = new CDbAuthManager;
return $auth->getAuthAssignments($id);
It states …
Fatal error: Call to a member function createCommand() on a non-object in /Applications/MAMP/htdocs/projects/BaseApp/yii/framework/web/auth/CDbAuthManager.php on line 303