/** * Render check box list tag * * @access public * * @param IFormModel $model model * @param string $property property model * @param array $options options array * * @return string */ public function checkBoxListField(IFormModel $model, $property, array $options = []) { $element = $this->getField($model, $property); $checkboxes = !empty($options['checkboxes']) ? $options['checkboxes'] : []; $format = !empty($options['format']) ? $options['format'] : '<p>%check% %text%</p>'; return Html::checkBoxList($element['name'], $checkboxes, $format, $element['value']); }