2022-01-11 13:25:30 -05:00
|
|
|
<?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-11 13:25:30 -05:00
|
|
|
|
2022-01-13 10:51:45 -05:00
|
|
|
$latte = Misc::latte();
|
|
|
|
$latte->render(Misc::getView('error'), ['error' => $meta]);
|
2022-01-11 13:25:30 -05:00
|
|
|
}
|
|
|
|
}
|