From 20e0f82b2a78fd4d732be5c2d43f5d582fd530fb Mon Sep 17 00:00:00 2001 From: Patrick Louys Date: Tue, 1 Nov 2016 16:48:27 +0100 Subject: [PATCH] Code changes --- 09-templating.md | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/09-templating.md b/09-templating.md index a679aaa..1f1bb7c 100644 --- a/09-templating.md +++ b/09-templating.md @@ -27,20 +27,20 @@ So what does our template engine actually need to do? For now we really just nee In there create a new interface `Renderer.php` that looks like this: ```php -engine = $engine; } - public function render($template, $data = []) + public function render($template, $data = []) : string { return $this->engine->render($template, $data); } @@ -71,7 +71,7 @@ Of course we also have to add a definition in our `Dependencies.php` file becaus Now in your `Homepage` controller, add the new dependency like this: ```php -