diff --git a/10-dynamic-pages.md b/10-dynamic-pages.md index 8565eb7..e2171e8 100644 --- a/10-dynamic-pages.md +++ b/10-dynamic-pages.md @@ -179,7 +179,7 @@ class InvalidPageException extends Exception Then in the `FilePageReader` file add this code at the end of your `readBySlug` method: -``` +```php $path = "$this->pageFolder/$slug.md"; if(!file_exists($path)) { @@ -223,4 +223,4 @@ Try a few different URLs to check that everything is working as it should. If so And as always, don't forget to commit your changes. -[<< previous](09-templating.md) | [next >>](11-page-menu.md) \ No newline at end of file +[<< previous](09-templating.md) | [next >>](11-page-menu.md)