From 20bd93a61ccaba09a1ff24b31e77942a13aeb794 Mon Sep 17 00:00:00 2001 From: Patrick Louys Date: Tue, 1 Nov 2016 17:00:27 +0100 Subject: [PATCH] Update 10-dynamic-pages.md --- 10-dynamic-pages.md | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/10-dynamic-pages.md b/10-dynamic-pages.md index 348e4e3..5983b4c 100644 --- a/10-dynamic-pages.md +++ b/10-dynamic-pages.md @@ -42,20 +42,20 @@ So let's put that functionality into a separate class. There is a good chance th In your 'src' folder, create a new folder `Page`. In there we will put all the page related classes. Add a new file in there called `PageReader.php` with this content: ```php -pageFolder = $pageFolder; } - public function readBySlug($slug) + public function readBySlug($slug) : string { return 'I am a placeholder'; } @@ -119,7 +119,7 @@ Did you get everything to work? If not, this is how the beginning of your controller should look now: ```php -