Yii Framework Forum: How To Use Right , User Modules Please Help Me - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

How To Use Right , User Modules Please Help Me Rate Topic: -----

#1 User is offline   harilal1234 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 14
  • Joined: 12-January 13

Posted 01 February 2013 - 12:35 AM

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..
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users