Define Access Rule For Some Specific Controller(Not All Controller) In One Common Controller.


Is there any way two define access rules for some list of specific controller in one common controller file.

Say i have one common Controller named BackeEndController.php

and all other controller extends this common Controller.

Now i want to set access rule for some specific controller (NOT FOR ALL Controller).(e.g HomeControoler,AboutController)

How can i set rules in common Controller named BackeEndController.php

I dont want to specify same rules in each controller as there are too many controller.

So one rules must apply to some list of specific controller (NOT ALL CONTROLLER)

public function accessRules()


  return array(


      // define rule

      // ...

      'controllers' => array('controllerId1', 'controllerId2'),