From 50981b89c04663763f331f724fb26174db85bfc0 Mon Sep 17 00:00:00 2001 From: phpNT Date: Fri, 15 Dec 2017 16:20:43 +0600 Subject: [PATCH] Update ICheck.php --- ICheck.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ICheck.php b/ICheck.php index a97b4d9..d44bdaa 100644 --- a/ICheck.php +++ b/ICheck.php @@ -58,13 +58,13 @@ public function run() switch ($this->type) { case 'checkbox': - echo Html::activeInput('checkbox', $this->model, $this->attribute, $this->options); + echo Html::activeCheckbox($this->model, $this->attribute, $this->options); break; case 'checkbox-list': echo Html::activeCheckboxList($this->model, $this->attribute, $this->items, $this->options); break; case 'radio': - echo Html::activeInput('radio', $this->model, $this->attribute, $this->options); + echo Html::activeRadio($this->model, $this->attribute, $this->options); break; case 'radio-list': echo Html::activeRadioList($this->model, $this->attribute, $this->items, $this->options); @@ -191,4 +191,4 @@ private function getCheckOptions() { break; } } -} \ No newline at end of file +}