Hi!
Please help me!
I’ve stucked on the 186th page of chapter 9.
On that page the RbacCommand.php is ready and the only thing what I should do according to the book is the running of the yiic shell and the rbac command but unfortunately I got this error:
This error suggests me to configure the authManager, but I did it as the book wrote it on the 179th page. The framework version is the same as in the book. So what should i do?
I commented out the if statement from the RbacCommand.php:
if(($this->_authManager=Yii::app()->authManager)===null)
{
echo "Error: an authorization manager, named 'authManager' must be configured to use this command.\n";
echo "If you already added 'authManager' component in application configuration,\n";
echo "please quit and re-enter the yiic shell.\n";
return;
}
But I got this Error:
[color="#FF0000"]create, read, update and delete user
create, read, update and delete project
create, read, update and delete issue
Would you like to continue? [Yes|No] y
PHP Fatal error: Call to a member function clearAll() on a non-object in /home/abiro/server/yii-core/framework/cli/commands/shell/RbacCommand.php on line 36[/color]
So, would you be so kind to help me? It seems to me the authManager configuration what I’ve done according to the book is not enough or I’ve made a mistake somewhere.
Thanks in advance