Browse Source

Merge branch 'master' of https://github.com/yiisoft/yii2

tags/2.0.0-alpha
Qiang Xue 12 years ago
parent
commit
2707c22857
  1. 1
      framework/base/Component.php

1
framework/base/Component.php

@ -90,6 +90,7 @@ class Component extends Object
// as behavior: attach behavior
$name = trim(substr($name, 3));
$this->attachBehavior($name, $value instanceof Behavior ? $value : Yii::createObject($value));
return;
} else {
// behavior property
$this->ensureBehaviors();

Loading…
Cancel
Save