Vous êtes connecté en tant que anonymous Se Deconnecter
application/class/Application.php
137b5e76
 <?php
 
daf6e125
 namespace MVC\Classe;
137b5e76
 
f33f2121
 define( "INCLUDE_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include");
daf6e125
 define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
8d6a2feb
 
 require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php";
ff461209
 
137b5e76
 class Application
 {
 	public $url;
 	
 	public function __construct(){
aed8ee26
 		$this->url = new Url();
137b5e76
 	}
ff461209
 
137b5e76
 	public function launch(){
ff461209
 
137b5e76
 		$controlleur = new Controlleur($this);
3957c7ee
 		if(!$this->url->page['control']) {
             print($controlleur->vue->ecran);
         }
137b5e76
 	}
 	
 }