update de l'application pour le dev de la documentation

This commit is contained in:
Emmanuel ROY 2020-12-18 17:44:09 +01:00
commit 6efdffc05c
31 changed files with 329 additions and 253 deletions

View file

@ -2,8 +2,6 @@
namespace MVC\Classe;
require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php";
class Application
{
public $http;
@ -12,7 +10,8 @@ class Application
public $route;
public function __construct(){
public function __construct()
{
$this->http = new HttpMethod();
$this->browser = new Browser();
@ -22,13 +21,13 @@ class Application
$this->route = $dispacher->route;
}
public function launch(){
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']) {
if (!$this->url->page['control']) {
print($controlleur->vue->ecran);
}
}
}