Hi,
Im very new to yii. Now Im stuck witha problem. I need diffrent admins like wordpress and also there is some users. users can singup,manage their accounts. How can i Set AccessRole with "Right" Module and "User" module?? please help me…
I have tried this code
class BackendController extends RController
{
public $layout='column1';
public $menu=array();
public $breadcrumbs=array();
public function filters()
{
return array(
'rights',
);
}
public function accessRules()
{
return array(
array('allow',
'users'=>array('*'),
'actions'=>array('login'),
),
array('allow',
'users'=>array('admin'),
),
array('deny',
'users'=>array('*'),
),
);
}
}
in my Backend contoller which lies on "yiiapp/protected/components/backendController.php"
but its not working…