SAND-framework/application/class/Application.php
Emmanuel ROY 8305007317 Application nettoyé,
Ajout de la lib composer hybridauth/hybridauth
TODO: integrer hybrid auth sur une page simple d'authentification
2019-09-09 22:37:17 +02:00

27 lines
557 B
PHP

<?php
namespace MVC\Classe;
define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php";
class Application
{
public $url;
public function __construct(){
$this->url = new Url();
}
public function launch(){
$controlleur = new Controlleur($this);
//si la page n'est un controlleur d'action alors on affiche l'écran
if(!$this->url->page['control']) {
print($controlleur->vue->ecran);
}
}
}