Difference between #1 and #2 of
Events explained

Revision #2 has been created by Ivo Renkema on Dec 8, 2012, 6:24:52 PM with the memo:

minor typo fixed
« previous (#1)

Changes

Title unchanged

Events explained

Category unchanged

Tutorials

Yii version unchanged

Tags unchanged

events, event handler

Content changed

[...]
Let's say that we are inside a function called runForestRun()
Instead of simply executing the code of this function we would like in addition to express that forest ran.
In other words to say that this event has occured.
Why?
Because maybe others are interested that this event has occur
ed and they would like to react!

So we want this:

```php
function runForestRun(){ //some point in our code, either function or method
[...]
16 3
24 followers
Viewed: 57 141 times
Version: 1.1
Category: Tutorials
Written by: pligor
Last updated by: Ivo Renkema
Created on: Apr 28, 2012
Last updated: 11 years ago
Update Article

Revisions

View all history