Vous êtes connecté en tant que anonymous Se Deconnecter
application/class/application.class.php
137b5e76
 <?php
 
aed8ee26
 define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
3957c7ee
 define( "OBJETS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "objets");
137b5e76
 
 require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php";
aed8ee26
 require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php";
8d6a2feb
 require CLASSES_PATH.DIRECTORY_SEPARATOR."bdd.class.php";
3957c7ee
 require CLASSES_PATH.DIRECTORY_SEPARATOR."dumper.class.php";
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
 	}
 	
 }