Closed jzush closed 9 years ago
The current way of handling 404 errors is to check if the route has been processed after every other route.
<?php
get('/', ...);
get('/something/else', ...);
get('/something/different', ...);
....
// Now check if route has been processed
if (!Nanite::$routeProccessed) {
// display 404
}
I would like to provide a proper way, such as Nanite::set404(...)
but would also like to keep Nanite as small and fast as possible. I have a few ideas I've been playing around with and should have something soon.
Oh sweet. Thank you
How do I handle 404 (not found) errors?
Thanks.