|
|
@ -410,6 +410,7 @@ class ActiveField extends Component |
|
|
|
*/ |
|
|
|
*/ |
|
|
|
public function checkbox($options = array(), $enclosedByLabel = true) |
|
|
|
public function checkbox($options = array(), $enclosedByLabel = true) |
|
|
|
{ |
|
|
|
{ |
|
|
|
|
|
|
|
$options = array_merge($this->inputOptions, $options); |
|
|
|
if ($enclosedByLabel) { |
|
|
|
if ($enclosedByLabel) { |
|
|
|
if (!isset($options['label'])) { |
|
|
|
if (!isset($options['label'])) { |
|
|
|
$options['label'] = Html::encode($this->model->getAttributeLabel($this->attribute)); |
|
|
|
$options['label'] = Html::encode($this->model->getAttributeLabel($this->attribute)); |
|
|
|