PatrickLouys / no-framework-tutorial

A small tutorial to show how to create a PHP application without a framework.
MIT License
1.53k stars 186 forks source link

Chapter 10-dynamic-pages, can't get InvalidPageException #68

Open codibez opened 5 years ago

codibez commented 5 years ago

I am trying to go through 10-dynamic-pages but can't seem to get the InvalidPageException to work. properly. When going to the localhost:8000/public it seems to show me the page properly like so

/public/

but when going to a certain page that doesn't exist in my project like localhost:8000/pages/page-six.md it seems to not be showing the InvalidPageException

/pages/page-six.md

I have updated my code on github/lowheartrate/heartfx with my project if you need to look it over for anything wrong with the code but can't seem to figure out why its not showing the InvalidPageException myself 😞