Rights Issue in generate Controller action

Hello,

I have used back-end and front-end in my application. it works perfect. but my issue is when i add new action in back-end controller it doesn’t display in Generate controller action in rights. Only existing actions are displayed for generate. New Actions not displayed. What i have to do?? Any Solution?

Thanx in Advance.

what error do you get? make sure you have the actions listed in your auth filter

you need to define rules




class PostController extends CController

{

    public function filters()

    {

        return array(

            'accessControl',

        );

    }


    public function accessRules()

    {

        return array(

            array('deny',

                'actions'=>array('create', 'edit'),

                'users'=>array('?'),

            ),

            array('allow',

                'actions'=>array('delete'),

                'roles'=>array('admin'),

            ),

            array('deny',

                'actions'=>array('delete'),

                'users'=>array('*'),

            ),

        );

    }

}

Not when you want to use the Rights module.

As for the problem, it might be many things. Could you please show the (relevant parts) of the controller in question? Not sure whether the problem is in the controller, but it is the first thing I would look at.

There is no error and my new actions not displayed. but i found the solution. it was just my mistake. There is case sensitive issue. Action name not started with Caps .for example.


public function actionloadData

.

And i start with caps. example,


public function actionLoadData

.

So finally my problem solved.

Thanx

I already defined in rules but there is case sensitive issue. i found it :)