$hint"; } return $string; } public function getLabel($name) { $width = 'col-md-4'; $string = '
'; $string .= ''; $label = sprintf($string, $name, $width, $name); $label .= '
'; return $label; } public function getInput($name, $type, $id) { if ($type == 'checkbox') { $string = '
'; } elseif ($type == 'text') { $string = '
'; } elseif ($type == 'textarea') { $string = ''; } elseif ($type == 'select') { $string = ' '; } break; default: $string .= $this->getInput($name, 'text', $id); } $string .= "\n"; } return $string; } } ?>