src/modules/Checkbox.php
protected function renderInput()
    {
        return $this->hasModel()
            ? Html::activeCheckbox($this->model, $this->attribute, $this->options)
            : Html::checkbox($this->name, $this->checked, $this->options);
    }
protected function renderInput()
    {
        return $this->hasModel()
            ? Html::activeCheckbox($this->model, $this->attribute, $this->options)
            : Html::checkbox($this->name, $this->checked, $this->options);
    }
Renders the checkbox input

@return string the generated checkbox input