Is there a possibility to attach a behavior to a controller class? In the documentation I found a "attachbehavior" method, but don't know, when this is called?
I want to attach a behavior (class) to some of my controllers, where in the "beforeAction" method are handled some processes. I don't want to create a BaseController which will be extended by my controllers, because of reuseability.