code: protected function renderInput()
      {
          return $this->hasModel()
              ? Html::activeCheckbox($this->model, $this->attribute, $this->options)
              : Html::checkbox($this->name, $this->checked, $this->options);
      }
docs: Renders the checkbox input
  
  @return string the generated checkbox input