how to apply same filter to all controllers

Hi

I have many controllers which all uses rights module. I am adding same code in each controller to enable them. is there any simple way to apply same filter to all controllers.

thanks

In the default Yii application there is a class Controller which is located in protected/components. This class extends CController and every controller you create extends the Controller class. So if you are using the default setup then your first place to look at should be protected/components/Controller.php

hope this will get you started

Thanks for the reply. That worked exactly like I wanted.