can anyone help me? i don’t know what and where is the error…i’m also don’t know what is “CAccessRule.0users” and why line 115 had been highlight…since i’m new in using yii-framework…i hope i will get the answer a.s.a.p…thank you…(:
CException
Property "[color="#FF0000"]CAccessRule.0users[/color]" is not defined.
Check out access control filter docs. When defining rules, each array item must contain an array with ‘access’ or ‘deny’ as first value and then other options as key=>array.
do you mean this accessRule?? i hope i give you the correct one…(:
I’m sorry to trouble you.
public function accessRules() {
return array(
array('allow', // allow all users to perform 'index' and 'view' actions
'actions'=>array('index','view'),
'0users'=>array('*'),
),
array('allow', // allow authenticated user to perform 'create' and 'update' actions
'actions'=>array('create','update'),
'users'=>array('@'),
),
array('allow', // allow admin user to perform 'admin' and 'delete' actions
'actions'=>array('admin','delete'),
'users'=>array('admin'),
),
array('deny', // deny all users
'users'=>array('*'),
),
);
}
okay…i got it…hehe…thank you so much, nick…i’m seriously didn’t noticed about that since i don’t know how to read the errors…thank you so much…really appreciate it…