public function getHtml() { $this->generate(); $html = ''; foreach ($this->fields as $field) { $html .= $field->getHtml(); } return $html; }