Великое объединение магазинов. #54.

This commit is contained in:
2023-07-29 00:18:04 +03:00
parent ad182a21fe
commit 9de7415f08
19 changed files with 1865 additions and 3125 deletions
+18
View File
@@ -0,0 +1,18 @@
<?php
namespace Core;
class View
{
public static function render(string $view, array $arguments = [])
{
extract($arguments, EXTR_SKIP);
$file = $_SERVER['DOCUMENT_ROOT'] . "/_incl_data/Views/$view";
if (is_readable($file)) {
require $file;
} else {
trigger_error("File $file not found!", E_USER_ERROR);
}
}
}