Yii2 in-depth study--inheritance relationship, Yii2 deep learning--
If you want to understand Yii2, be sure to understand the inheritance relationship of YII2 to related classes. Due to the limited amount of code that is temporarily read, only a partial inheritance is listed in the following figure, and then the source reads more and more and then increases
You can see that most of the classes in Yii2 inherit from Yii\base\object, which implements the functionality of the property.
Yii\base\component yii\base\event and Yii\base\behavior all inherit the Yii\base\object,yii\base\component is a basic class that implements the properties/events and behavior functions. Yii\base\event is the underlying class for all events, and Yii\base\behavior is the underlying class for all behaviors.
Both Model/view and controllers inherit from Yii\base\component.
Today more tired, steal a lazy, less write a little, that's all O (∩_∩) o
YII2 source interested students can pay attention to the project yii2-2.0.3-annotated, now on the above has been added a lot of comments on Yii2 source code, and then continue to add ~
Interested students can also participate in the submission of YII2 source comments.
http://www.bkjia.com/PHPjc/1064530.html www.bkjia.com true http://www.bkjia.com/PHPjc/1064530.html techarticle Yii2 in-depth study--inheritance relationship, YII2 in-depth study--to understand Yii2, we must understand the inheritance of the related classes in Yii2. Due to the limited number of temporarily read code, the following ...