From db36a0a27e0f92f19f48612bef638704d3807976 Mon Sep 17 00:00:00 2001 From: Arsen Mirzaev Tatyano-Muradovich Date: Fri, 1 Oct 2021 03:41:24 +1000 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D1=8F=20=D0=BF=D0=B5=D1=80=D0=B2=D0=BE=D0=B9?= =?UTF-8?q?=20=D0=B2=D0=B5=D1=80=D1=81=D0=B8=D0=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- mirzaev/minimal/system/controller.php | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/mirzaev/minimal/system/controller.php b/mirzaev/minimal/system/controller.php index 15017c7..f508415 100644 --- a/mirzaev/minimal/system/controller.php +++ b/mirzaev/minimal/system/controller.php @@ -40,21 +40,6 @@ class controller { } - /** - * Отрисовка шаблона - * - * @param string $route Маршрут - */ - public function view(string $route) - { - // Чтение представления по шаблону пути: "/views/[controller]/index - // Никаких слоёв и шаблонизаторов - // Не стал в ядре записывать путь до шаблонов - if (file_exists($view = core::path() . DIRECTORY_SEPARATOR . '..' . DIRECTORY_SEPARATOR . 'views' . DIRECTORY_SEPARATOR . $route . DIRECTORY_SEPARATOR . 'index.html')) { - include $view; - } - } - /** * Записать свойство *