proxitok/helpers/ErrorHandler.php
2022-01-28 15:54:09 +01:00

11 lines
249 B
PHP

<?php
namespace Helpers;
class ErrorHandler {
static public function show(object $meta) {
http_response_code($meta->http_code);
$latte = Misc::latte();
$latte->render(Misc::getView('error'), ['error' => $meta]);
}
}