forked from ZwiiCMS-Team/ZwiiCMS
Class structure
This commit is contained in:
parent
a22d013776
commit
1569912204
@ -1,4 +1,12 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Chargement des classes filles
|
||||||
|
* router : aiguillage des pages
|
||||||
|
*/
|
||||||
|
|
||||||
|
require_once('core/class/layout.class.php');
|
||||||
|
|
||||||
class core extends common
|
class core extends common
|
||||||
{
|
{
|
||||||
|
|
||||||
@ -453,6 +461,10 @@ class core extends common
|
|||||||
*/
|
*/
|
||||||
public function router()
|
public function router()
|
||||||
{
|
{
|
||||||
|
|
||||||
|
//
|
||||||
|
$layout = new layout($this);
|
||||||
|
|
||||||
// Installation
|
// Installation
|
||||||
if (
|
if (
|
||||||
$this->getData(['user']) === []
|
$this->getData(['user']) === []
|
||||||
|
@ -15,12 +15,9 @@
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* Chargement des classes filles
|
* Chargement des classes filles
|
||||||
* layout : composition des écrans
|
|
||||||
* router : aiguillage des pages
|
* router : aiguillage des pages
|
||||||
*/
|
*/
|
||||||
require_once('class/layout.class.php');
|
require_once('core/class/router.class.php');
|
||||||
require_once('class/router.class.php');
|
|
||||||
|
|
||||||
|
|
||||||
class common
|
class common
|
||||||
{
|
{
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<?php $layout = new layout($this); ?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
||||||
<head>
|
<head>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<?php $layout = new layout($this); ?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
||||||
<head>
|
<head>
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
<?php $layout = new layout($this); ?>
|
|
||||||
<!DOCTYPE html>
|
<!DOCTYPE html>
|
||||||
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
<html prefix="og: http://ogp.me/ns#" lang="<?php echo substr(self::$i18nContent, 0, 2); ?>">
|
||||||
<head>
|
<head>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user