画像ライブラリーはクラス化、TGA対応の追加

This commit is contained in:
2025-12-31 10:37:53 +09:00
parent 9a5d5db5f3
commit 105cbdec7d
11 changed files with 384 additions and 213 deletions

View File

@@ -1,6 +1,4 @@
<?php
error_reporting(E_ALL);
ini_set('display_errors', 1);
require_once __DIR__.DIRECTORY_SEPARATOR.'/autoload.php';
@@ -16,8 +14,13 @@ use Site\Controller\User;
define('ROOT', realpath(__DIR__));
include(ROOT.'/config/config.php');
if (DEBUG_MODE) {
error_reporting(E_ALL);
ini_set('display_errors', 1);
}
include(ROOT.'/util.php');
$routes = [
Route::add('GET', 'blog/{page}', Home::class.'@article'),
Route::add('GET', 'about', Page::class.'@about'),