I have a question about CComponent ?
CComponent class has two private field: $_m, $_e, these two field never initialized as array.
Does this means class which extend CComponent cannot access $_m and $_e ? What the purpose of defining these two private fields ?
You don’t have to worry about those private variables, they are used to store informations like behaviors and events for “cache”/easy access.
See:
http://www.yiiframework.com/doc/api/1.1/CComponent#attachBehavior-detail
and
http://www.yiiframework.com/doc/api/1.1/CComponent#getEventHandlers-detail
Yes Ted if the properties are defined as private means you cannot access them in subclass or outside the class $_e is used as a event store for currently registered events and $_m is used for storing the dynamic properties