mirror of
https://github.com/pablouser1/ProxiTok.git
synced 2024-12-06 19:27:30 +01:00
13 lines
276 B
PHP
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]);
|
|
}
|
|
}
|