many fixes in design and add shirt story type for creation book

This commit is contained in:
2026-05-01 20:51:42 +03:00
parent 9294399517
commit ce6fffaa57
24 changed files with 1167 additions and 735 deletions
+2 -1
View File
@@ -1,6 +1,6 @@
<?php
// index.php - единая точка входа
require_once 'config/config.php';
require_once __DIR__ . '/../config/config.php';
// Получаем путь к запрашиваемому ресурсу
$requestUri = $_SERVER['REQUEST_URI'];
@@ -53,6 +53,7 @@ if (pathinfo($physicalPath, PATHINFO_EXTENSION) != 'php') {
// Простой роутер
class Router {
private $routes = [];
public $params = [];
public function add($pattern, $handler) {
$this->routes[$pattern] = $handler;