SAND-framework/application/class/application.class.php

21 lines
464 B
PHP
Raw Normal View History

<?php
2017-06-13 22:54:16 +02:00
define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php";
2017-06-13 22:54:16 +02:00
require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php";
class Application
{
public $url;
public function __construct(){
2017-06-13 22:54:16 +02:00
$this->url = new Url();
}
public function launch(){
$controlleur = new Controlleur($this);
2017-06-13 22:54:16 +02:00
print( $controlleur->vue->ecran );
}
}