This commit is contained in:
2025-03-14 17:42:58 +03:00
commit a283d2cf37
13 changed files with 395 additions and 0 deletions

23
index.php Normal file
View File

@ -0,0 +1,23 @@
<?php
require_once "vendor/autoload.php";
error_reporting(-1);
ini_set("display_errors", true);
$inputs = json_decode(file_get_contents(__DIR__ . "/form.json"), true);
// включаем буфер
ob_start();
// выводим информацию
include __DIR__ . "/views/index.php";
// сохраняем всё что есть в буфере в переменную $content
$content = ob_get_contents();
// отключаем и очищаем буфер
ob_end_clean();
include "views/layouts/main.php";