Quantcast
Channel: Yii Framework Forum
Viewing all articles
Browse latest Browse all 18717

Console Command For Rbac

$
0
0
I am trying to create a new command for yiic shell.
I have create a new class named "RbacCommand".
It extends CConsoleCommand.
It overrides the run() function.
When i run the help of yiic shell, it recognizes the new command (rbac).
When i try to run it, this message appears:

exception 'CException' with message 'Property "RbacCommand." is not defined.' in c:\xampp\htdocs\yii\framework\base\CComponent.php:174

I've tried to put my class script (RbacCommad.php) to files
protected\commands or
protected\commands\shell

Also, i've tried to configure the main.php and console.php
with

'authManager'=>array(
'class'=>'CDbAuthManager',
'connectionID'=>'db',
'itemTable'=>'authitem',
'itemChildTable'=>'authitemchild',
'assignmentTable'=>'authassignment',
),

and

'commandMap'=>array(
'rbac'=>array(
'class'=>'Rbac'
),
)

i've put authManager inside componets.

Always the same message. Any thoughts? Thank you.

  • : project_yii.jpg

Viewing all articles
Browse latest Browse all 18717

Trending Articles