proxitok/app/Helpers/ErrorHandler.php
Pablo Ferreiro 8816f4a1a1
Removed home.js
Added Discover
2022-02-06 00:58:30 +01:00

13 lines
290 B
PHP

<?php
namespace App\Helpers;
use App\Models\ErrorTemplate;
class ErrorHandler {
static public function show(object $meta) {
http_response_code($meta->http_code);
$latte = Misc::latte();
$latte->render(Misc::getView('error'), new ErrorTemplate($meta));
}
}