Class structure

This commit is contained in:
Fred Tempez 2023-03-09 08:07:34 +01:00
parent a22d013776
commit 1569912204
5 changed files with 13 additions and 7 deletions

View File

@ -1,4 +1,12 @@
<?php
/**
* Chargement des classes filles
* router : aiguillage des pages
*/
require_once('core/class/layout.class.php');
class core extends common
{
@ -453,6 +461,10 @@ class core extends common
*/
public function router()
{
//
$layout = new layout($this);
// Installation
if (
$this->getData(['user']) === []

View File

@ -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
{

View File

@ -1,4 +1,3 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
<head>

View File

@ -1,4 +1,3 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
<head>

View File

@ -1,4 +1,3 @@
<?php $layout = new layout($this); ?>
<!DOCTYPE html>
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
<head>