proxitok/helpers/Error.php
2022-01-13 16:51:45 +01:00

13 lines
276 B
PHP

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