Browse files

Added more docs about second param.

  • Loading branch information...
1 parent a714f1e commit 4bd3bfbc5cea40b88411ac3dde1e347b88e80c92 Ragazzo committed Feb 1, 2013
Showing with 2 additions and 0 deletions.
  1. +2 −0 framework/base/CComponent.php
@@ -318,6 +318,8 @@ public function detachBehaviors()
* @param string $name the behavior's name. It should uniquely identify this behavior.
* @param mixed $behavior the behavior configuration. This is passed as the first
* parameter to {@link YiiBase::createComponent} to create the behavior object.
+ * You also can pass already created behavior instance (new behavior will replace already created
+ * behavior with the same given name if it is exists).
* @return IBehavior the behavior object
public function attachBehavior($name,$behavior)

0 comments on commit 4bd3bfb

Please sign in to comment.