nativegallery/app/Controllers/ExceptionRegister.php
2024-07-08 20:17:49 +03:00

20 lines
No EOL
333 B
PHP

<?php
namespace App\Controllers;
use \App\Services\{DB, Json};
use \App\Core\Router;
use \App\Core\Page;
class ExceptionRegister
{
public static function resolve($httpcode, $corecode) {
return Page::set('Errors/'.$corecode);
}
public static function notfound() {
Page::set('Errors/404');
}
}