first
This commit is contained in:
23
index.php
Normal file
23
index.php
Normal 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";
|
||||
|
Reference in New Issue
Block a user