protected function _init() { parent::_init(); $this->renderers['access'] = 'renderCSVList'; // renderCSVList is a mixin method from app\mixins\ReusableFormRenderers $this->input['password'] = ''; }
public function renderElementWrapperWithTitle($input, $element) { if (!$this->options->table) { return parent::renderElementWrapperWithTitle($input, $element); } $name = $element['_name']; $description = empty($element['description']) ? '' : '<span class="icon help" title="' . Output::html($element['description']) . '">HELP</span>'; $html = '<th class="' . $this->elementWrapperClasses($element) . '">' . $description . $element['title'] . '</th>'; $html .= '<td class="input ' . $this->elementWrapperClasses($element) . '">' . $input . '</td>'; return $this->renderElementWrapper($html, $element); }