Skip to content

Commit

Permalink
return html
Browse files Browse the repository at this point in the history
Return the generated html code instead of echoing it
  • Loading branch information
fullmvc authored Mar 3, 2019
1 parent 0ce7de2 commit 5493b16
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Gallery.php
Original file line number Diff line number Diff line change
Expand Up @@ -86,9 +86,10 @@ public function run()
if (empty($this->items)) {
return null;
}
echo $this->renderItems();
echo $this->renderTemplate();
$result = $this->renderItems() . $this->renderTemplate();
$this->registerClientScript();

return $result;
}

/**
Expand Down

0 comments on commit 5493b16

Please sign in to comment.