title: Yii attach Event
body: <p>When reading YIi guide at this link: <a href="http://www.yiiframework.com/wiki/327/events-explained/" rel="nofollow">http://www.yiiframework.com/wiki/327/events-explained/</a>, I have see this line: </p>
  
  <blockquote>
    <p>...So earlier before raising the event we should have called, maybe inside the initialization method of the component, something like this:</p>
  </blockquote>
  
  <pre><code>$myComponent-&gt;onForestRan = array(new SomeOtherClass, 'eventHandler1');
  </code></pre>
  
  <p>I understand that this code will attach a handler to event, and the array on the left-hand side is a PHP callback function. However, what I really don't understand is its syntax, does it call a onforestRan() function (which is previously defined on $component--> see the Yii link above), if so it will not valid as it lack of $event argument. Or, if it is a callback, then I have never seen a way of using callback like this (if it is a callback where is call_user_func() or usort()..). Its syntax is really odd to me.
  Could some one help me with this?
  Thank so much!</p>