Start of proj
This commit is contained in:
parent
066251b3a7
commit
d608a990b6
@ -2,7 +2,7 @@
|
||||
// Namespaces
|
||||
use Pecee\SimpleRouter\SimpleRouter;
|
||||
use Pecee\Http\Request;
|
||||
/*
|
||||
// Error handling redirects
|
||||
SimpleRouter::error(function (Request $request, \Exception $exception) {
|
||||
switch ($exception->getCode()) {
|
||||
// Page not found
|
||||
@ -10,7 +10,6 @@ SimpleRouter::error(function (Request $request, \Exception $exception) {
|
||||
redirect('/phpCourse/exam/not-found', 404);
|
||||
}
|
||||
});
|
||||
*/
|
||||
//404
|
||||
SimpleRouter::get('/not-found', [Pages\NotFound\NotFound::class, "render"]);
|
||||
//Index
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user