/** * Wrap a Field with the current control group * * @param Field $field A Field instance * @return string A .control-group */ public function wrapField($field) { $html = $this->open(); $html .= $this->getLabel($field); $field = $this->prependAppend($field); $field .= $this->getHelp(); $html .= Framework::getFieldClasses($field); $html .= $this->close(); return $html; }