diff --git a/View/Inline.php b/View/Inline.php index c7ff257..ad185be 100644 --- a/View/Inline.php +++ b/View/Inline.php @@ -35,7 +35,7 @@ public function render() $element = $elements[$e]; - echo $this->getLabel($element), ' ', $element->getInput(), $this->getDescriptions($element); + echo $this->getLabel($element) . ' ' . $element->getInput() . $this->getDescriptions($element); ++$elementCount; } diff --git a/View/SideBySide.php b/View/SideBySide.php index 0000551..d4b9e66 100644 --- a/View/SideBySide.php +++ b/View/SideBySide.php @@ -35,7 +35,7 @@ public function render() if ($element instanceof Hidden || $element instanceof HTML ) { - $element->getInput(); + echo $element->getInput(); } elseif ($element instanceof Button) { if ($e == 0 || !$elements[($e - 1)] instanceof Button) { echo '
'; @@ -43,7 +43,7 @@ public function render() echo ' '; } - $element->render(); + echo $element->getInput(); if (($e + 1) == $elementSize || !$elements[($e + 1)] instanceof Button diff --git a/View/Vertical.php b/View/Vertical.php index 5b4175d..87de7ef 100644 --- a/View/Vertical.php +++ b/View/Vertical.php @@ -35,17 +35,17 @@ public function render() echo ' '; } - $element->getInput(); + echo $element->getInput(); if (($e + 1) == $elementSize || !$elements[($e + 1)] instanceof Button) { echo '
'; } } else { - $this->getLabel($element); + echo $this->getLabel($element); - $element->getInput(); + echo $element->getInput(); - $this->getDescriptions($element); + echo $this->getDescriptions($element); ++$elementCount; }