proxitok/helpers/Error.php

13 lines
276 B
PHP
Raw Normal View History

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