base\Component attachBehaviors()

attachBehaviors() public method

Attaches a list of behaviors to the component.

Each behavior is indexed by its name and should be a yii\base\Behavior object, a string specifying the behavior class, or an configuration array for creating the behavior.

See also attachBehavior().

public void attachBehaviors ( $behaviors )
$behaviors array

List of behaviors to be attached to the component

doc_Yii
2016-10-30 16:51:02
Comments
Leave a Comment

Please login to continue.