Browse Source

Proper 'yii/form' location in the ActiveForm.

tags/2.0.0-beta
resurtm 12 years ago
parent
commit
0d4faf75a4
  1. 2
      yii/widgets/ActiveForm.php

2
yii/widgets/ActiveForm.php

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

Loading…
Cancel
Save