Skip to content
This repository has been archived by the owner on Apr 26, 2022. It is now read-only.

Commit

Permalink
missing echo in views
Browse files Browse the repository at this point in the history
  • Loading branch information
denisdulici committed Apr 11, 2016
1 parent 47d51b0 commit e9f7c88
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion View/Inline.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down
4 changes: 2 additions & 2 deletions View/SideBySide.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,15 +35,15 @@ 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 '<div class="form-actions">';
} else {
echo ' ';
}

$element->render();
echo $element->getInput();

if (($e + 1) == $elementSize ||
!$elements[($e + 1)] instanceof Button
Expand Down
8 changes: 4 additions & 4 deletions View/Vertical.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,17 +35,17 @@ public function render()
echo ' ';
}

$element->getInput();
echo $element->getInput();

if (($e + 1) == $elementSize || !$elements[($e + 1)] instanceof Button) {
echo '</div>';
}
} else {
$this->getLabel($element);
echo $this->getLabel($element);

$element->getInput();
echo $element->getInput();

$this->getDescriptions($element);
echo $this->getDescriptions($element);

++$elementCount;
}
Expand Down

0 comments on commit e9f7c88

Please sign in to comment.