From 1569912204f094d476b900e1ca5c64e6e2622055 Mon Sep 17 00:00:00 2001 From: Fred Tempez Date: Thu, 9 Mar 2023 08:07:34 +0100 Subject: [PATCH] Class structure --- core/class/router.class.php | 12 ++++++++++++ core/core.php | 5 +---- core/layout/blank.php | 1 - core/layout/light.php | 1 - core/layout/main.php | 1 - 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/core/class/router.class.php b/core/class/router.class.php index 8917801d..3c40ca6e 100644 --- a/core/class/router.class.php +++ b/core/class/router.class.php @@ -1,4 +1,12 @@ getData(['user']) === [] diff --git a/core/core.php b/core/core.php index 0f80817c..ed00f6ea 100644 --- a/core/core.php +++ b/core/core.php @@ -15,12 +15,9 @@ /** * Chargement des classes filles - * layout : composition des écrans * router : aiguillage des pages */ -require_once('class/layout.class.php'); -require_once('class/router.class.php'); - +require_once('core/class/router.class.php'); class common { diff --git a/core/layout/blank.php b/core/layout/blank.php index 2a46f72d..a8ca73c8 100644 --- a/core/layout/blank.php +++ b/core/layout/blank.php @@ -1,4 +1,3 @@ - diff --git a/core/layout/light.php b/core/layout/light.php index c2906456..40d10dc3 100644 --- a/core/layout/light.php +++ b/core/layout/light.php @@ -1,4 +1,3 @@ - diff --git a/core/layout/main.php b/core/layout/main.php index 246d6939..391bad0f 100644 --- a/core/layout/main.php +++ b/core/layout/main.php @@ -1,4 +1,3 @@ -