Commits

Bogdan Savluk  committed 378e7c8

updated active methods

  • Participants
  • Parent commits 32f6261

Comments (0)

Files changed (1)

 
     public static function activeDropDownList($model, $attribute, $data, $htmlOptions = array())
     {
-        return self::dropDownList(CHtml::activeName($model, $attribute), CHtml::value($model, $attribute), $data, $htmlOptions);
+        return Yii::app()->getController()->widget(__CLASS__, array(
+            'model' => $model,
+            'attribute' => $attribute,
+            'data' => $data,
+            'htmlOptions' => $htmlOptions,
+        ), true);
     }
 
     /** Multiple items select */
 
     public static function activeMultiSelect($model, $attribute, $data, $htmlOptions = array())
     {
-        return self::multiSelect(CHtml::activeName($model, $attribute) . '[]', CHtml::value($model, $attribute), $data, $htmlOptions);
+        return Yii::app()->getController()->widget(__CLASS__, array(
+            'model' => $model,
+            'attribute' => $attribute,
+            'data' => $data,
+            'htmlOptions' => $htmlOptions,
+            'multiple' => true,
+        ), true);
     }
-
-
 }