mirror of
https://github.com/yiisoft/yii2.git
synced 2025-11-16 06:17:56 +08:00
'yii/form' asset bundle returned to the ActiveForm.
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user