Commit b13d1e80 by Carsten Brandt

typo

[ci skip]
parent 23866f67
...@@ -96,8 +96,8 @@ $event->userName = 'Alexander'; ...@@ -96,8 +96,8 @@ $event->userName = 'Alexander';
$this->trigger('createUserEvent', $event); $this->trigger('createUserEvent', $event);
``` ```
The event name needs to be unique within the class it is defined. Event names are *case-sensitive*, bu it is a good practice The event name needs to be unique within the class it is defined. Event names are *case-sensitive*, but it is a good practice
to define event names as class constants: to define event names using class constants:
```php ```php
class Mailer extends Component class Mailer extends Component
......
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