On the page you got this from there is a link to another resource that explains it quite nice http://www.kofrimpong.com/post/11/How+do+you+create+your+own+event+object%3F
In short you have to raise the event.
Frage
What is event in yii? How to use event in yii? Example:
public function onForestRan($event){
$this->raiseEvent('onForestRan', $event);
}
$myComponent->onForestRan = array(new SomeOtherClass, 'eventHandler1');
When the event is triggered?
Keine korrekte Lösung
Andere Tipps
On the page you got this from there is a link to another resource that explains it quite nice http://www.kofrimpong.com/post/11/How+do+you+create+your+own+event+object%3F
In short you have to raise the event.