'radio' ); public function render() { $html = ''; foreach($this->options as $value => $label) { $this->attr['value'] = $value; $checked = $this->value === $value ? 'checked' : ''; $html .= sprintf('', $this->getAttribs(), $checked, $label ); } $html .= $this->getDescriptionHtml(); return $html; } public function getAttribs() { unset($this->attr['id']); return parent::getAttribs(); } }