Yii Framework Forum: Events In Yii2 - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Events In Yii2

#1 User is offline   egorpromo 

  • Junior Member
  • Pip
  • Yii
  • Group: Members
  • Posts: 66
  • Joined: 02-December 12

Posted 12 July 2013 - 11:20 AM

Let's discuss concept behind events in Yii2. What are they for? I know the purpose of events is use callback functions in certain places. But there are some features in Object Oriented Programming. Because we need modularity, minimal cohesion and other OO Principles. So what are these features?
I see many files in Yii2 with partial name 'event': UserEvent.php, ModelEvent.php, ViewEvent.php. May be it is redundant to blow code and there are more simple solutions.
0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users