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 -