Yii2 in-depth study--inheritance relationship, YII2 in-depth study--_php tutorial

Source: Internet
Author: User

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 ...

  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.