SAND-framework/application/class/Application.php
Emmanuel ROY 21ec903fa9 Ajout et tests des modules Wordpress et Prestashop
Installation finalisée pour wordpress
Installation en erreur pour Prestashop
2019-12-06 17:35:12 +01:00

34 lines
775 B
PHP

<?php
namespace MVC\Classe;
require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php";
class Application
{
public $http;
public $url;
public $browser;
public $route;
public function __construct(){
$this->http = new HttpMethod();
$this->browser = new Browser();
$this->url = new Url($this->http->method, $this->browser->isAppRequest());
$dispacher = new Dispacher();
$this->route = $dispacher->route;
}
public function launch(){
//print_r($this->route);
$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);
}
}
}