Browse Source

'yii/form' asset bundle returned to the ActiveForm.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
19a74c015c
  1. 1
      yii/widgets/ActiveForm.php

1
yii/widgets/ActiveForm.php

@ -135,6 +135,7 @@ class ActiveForm extends Widget
$options = Json::encode($this->getClientOptions());
$attributes = Json::encode($this->attributes);
$this->view->registerJs("jQuery('#$id').yiiActiveForm($attributes, $options);");
$this->view->registerAssetBundle('yii/form');
}
echo Html::endForm();
}

Loading…
Cancel
Save