From 0d4faf75a48bd7917083c75f5f8d0f5347ca4c21 Mon Sep 17 00:00:00 2001 From: resurtm Date: Thu, 16 May 2013 00:09:59 +0600 Subject: [PATCH] Proper 'yii/form' location in the ActiveForm. --- yii/widgets/ActiveForm.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/yii/widgets/ActiveForm.php b/yii/widgets/ActiveForm.php index 51b883f..25a2054 100644 --- a/yii/widgets/ActiveForm.php +++ b/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(); }