How to use Filter methos in Controller


I want to make the Access control of every controller driven by the permision module or yi user managment extension.

I found that filter method of the controller class is the beginning of process of valitation.

Is there any example that I can follow to understand how "filter" method can be used ?

Best Regards