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:
Quote
PHP Deprecated: Comments starting with '#' are deprecated in /etc/php5/cli/conf.d/mcrypt.ini on line 1 in Unknown on line 0
Yii Interactive Tool v1.1 (based on Yii v1.1.2)
Please type 'help' for help. Type 'exit' to quit.
>> help
At the prompt, you may enter a PHP statement or one of the following commands:
- controller
- crud
- form
- help
- model
- module
- rbac
Type 'help <command-name>' for details about a command.
To expand the above command list, place your command class files
under 'protected/commands/shell', or a directory specified
by the 'YIIC_SHELL_COMMAND_PATH' environment variable. The command class
must extend from CConsoleCommand.
>> rbac
Error: an authorization manager, named 'authManager' must be configured to use this command.
If you already added 'authManager' component in application configuration,
please quit and re-enter the yiic shell.
>>
[9]+ Megállítva trackstar/protected/yiic shell
root@none-laptop:~/server#
root@none-laptop:~/server/trackstar#
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:
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
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

Help
















