proxitok/helpers/ErrorHandler.php

11 lines
249 B
PHP
Raw Normal View History

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