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.
문제
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?
올바른 솔루션이 없습니다
다른 팁
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.