Fix code highlight
This commit is contained in:
parent
1b181f6806
commit
518e8687eb
1 changed files with 2 additions and 2 deletions
|
@ -179,7 +179,7 @@ class InvalidPageException extends Exception
|
||||||
|
|
||||||
Then in the `FilePageReader` file add this code at the end of your `readBySlug` method:
|
Then in the `FilePageReader` file add this code at the end of your `readBySlug` method:
|
||||||
|
|
||||||
```
|
```php
|
||||||
$path = "$this->pageFolder/$slug.md";
|
$path = "$this->pageFolder/$slug.md";
|
||||||
|
|
||||||
if(!file_exists($path)) {
|
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.
|
And as always, don't forget to commit your changes.
|
||||||
|
|
||||||
[<< previous](09-templating.md) | [next >>](11-page-menu.md)
|
[<< previous](09-templating.md) | [next >>](11-page-menu.md)
|
||||||
|
|
Loading…
Reference in a new issue