PhpGt / WebEngine

Minimalistic, ergonomic PHP toolkit.
https://www.php.gt/webengine
MIT License
26 stars 6 forks source link

Automatically handle errors #610

Closed g105b closed 2 months ago

g105b commented 1 year ago

Errors such as 404 and 500 should be handled automatically without the developer having to set anything up. Currently, throwing a new HttpNotFound() from a go() function displays the error uncaught exception message - this should show a blank screen by default (with a 404 error code), or the 404 page, if there's a _404.html in the page directory.

g105b commented 2 months ago

Duplicate: #642