Commit 7d0f8ce6 by Andrei Chugunov Committed by Carsten Brandt

guide typo

close #5751
parent a153750e
...@@ -258,7 +258,7 @@ Global Events <a name="global-events"></a> ...@@ -258,7 +258,7 @@ Global Events <a name="global-events"></a>
Yii supports a so-called *global event*, which is actually a trick based on the event mechanism described above. Yii supports a so-called *global event*, which is actually a trick based on the event mechanism described above.
The global event requires a globally accessible Singleton, such as the [application](structure-applications.md) instance itself. The global event requires a globally accessible Singleton, such as the [application](structure-applications.md) instance itself.
To create the global evant, an event sender calls the Singleton's `trigger()` method To create the global event, an event sender calls the Singleton's `trigger()` method
to trigger the event, instead of calling the sender's own `trigger()` method. Similarly, the event handlers are attached to the event on the Singleton. For example: to trigger the event, instead of calling the sender's own `trigger()` method. Similarly, the event handlers are attached to the event on the Singleton. For example:
```php ```php
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment