aggiunta di una view di errore generico (500.php) (parte 99)
1 files added
1 files modified
| | |
| | | <?php |
| | | |
| | | declare(strict_types= 1); |
| | | $show_errors = true; |
| | | $show_errors = false; |
| | | |
| | | if($show_errors) { |
| | | ini_set("display_errors", "1"); |
| | | }else{ |
| | | ini_set("display_errors","0"); |
| | | require "views/500.php"; |
| | | } |
| | | |
| | | |
New file |
| | |
| | | <!DOCTYPE html> |
| | | <html lang="en"> |
| | | <head> |
| | | <meta charset="UTF-8"> |
| | | <meta name="viewport" content="width=device-width, initial-scale=1.0"> |
| | | <title>Error</title> |
| | | </head> |
| | | <body> |
| | | Error 500: An error occurred |
| | | </body> |
| | | </html> |