11 lines
253 B
PHP
11 lines
253 B
PHP
<?php
|
|
namespace App\Helpers;
|
|
|
|
class ErrorHandler {
|
|
static public function show(object $meta) {
|
|
http_response_code($meta->http_code);
|
|
$latte = Misc::latte();
|
|
$latte->render(Misc::getView('error'), ['error' => $meta]);
|
|
}
|
|
}
|