Skip to content

Commit a74dc23

Browse files
committed
fixed bug with renderHtmlPage
1 parent 3229199 commit a74dc23

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212

1313

1414
#### Fixed
15-
- Fixed
15+
- Fixed bug with `Response::renderHtmlPage()`
1616

1717

1818
#### Changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,9 +21,9 @@ After [installing](#installation) Leaf, create an _index.php_ file.
2121
require __DIR__ . '/../vendor/autoload.php';
2222

2323
// Instantiate Leaf
24-
$leaf = new Leaf\Core\Leaf();
25-
$request = new Leaf\Core\Http\Request();
26-
$response = new Leaf\Core\Http\Response();
24+
$leaf = new Leaf\Core\Leaf;
25+
$request = new Leaf\Core\Http\Request;
26+
$response = new Leaf\Core\Http\Response;
2727

2828
// Add routes
2929
$leaf->get('/', function () use($response) {

src/core/Http/response.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ public function throwErr($error, $code) {
2626

2727
public function renderHtmlPage($file) {
2828
header('Content-Type: text/html');
29-
echo require $file;
29+
require $file;
3030
}
3131

3232
public function renderMarkup($markup) {

0 commit comments

Comments
 (0)