美文网首页
yii\base\Component

yii\base\Component

作者: duandaoke | 来源:发表于2018-02-21 22:21 被阅读0次

    Component is the base class that implements the property, event and behavior features.
    Event is a way to "inject" custom code into existing code at certain places.For example, a comment object can trigger an "add" event when the user adds a comment. We can write custom code and attach it to this event so that when the event is triggered (i.e. comment will be added), our custom code will be executed.

    An event is identified by a name that should be unique within the class it is defined at. Event names are case-sensitive.

    相关文章

      网友评论

          本文标题:yii\base\Component

          本文链接:https://www.haomeiwen.com/subject/khymtftx.html