1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,29 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs"); |
|
4 |
-define( "OBJETS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "objets"); |
|
5 |
- |
|
6 |
-require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php"; |
|
7 |
-require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php"; |
|
8 |
-require CLASSES_PATH.DIRECTORY_SEPARATOR."bdd.class.php"; |
|
9 |
-require CLASSES_PATH.DIRECTORY_SEPARATOR."dumper.class.php"; |
|
10 |
- |
|
11 |
-require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php"; |
|
12 |
- |
|
13 |
-class Application |
|
14 |
-{ |
|
15 |
- public $url; |
|
16 |
- |
|
17 |
- public function __construct(){ |
|
18 |
- $this->url = new Url(); |
|
19 |
- } |
|
20 |
- |
|
21 |
- public function launch(){ |
|
22 |
- |
|
23 |
- $controlleur = new Controlleur($this); |
|
24 |
- if(!$this->url->page['control']) { |
|
25 |
- print($controlleur->vue->ecran); |
|
26 |
- } |
|
27 |
- } |
|
28 |
- |
|
29 |
-} |
... | ... |
@@ -1,10 +1,12 @@ |
1 | 1 |
<?php |
2 | 2 |
|
3 | 3 |
define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs"); |
4 |
+define( "OBJETS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "objets"); |
|
4 | 5 |
|
5 | 6 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php"; |
6 | 7 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php"; |
7 | 8 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."bdd.class.php"; |
9 |
+require CLASSES_PATH.DIRECTORY_SEPARATOR."dumper.class.php"; |
|
8 | 10 |
|
9 | 11 |
require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php"; |
10 | 12 |
|
... | ... |
@@ -19,7 +21,9 @@ class Application |
19 | 21 |
public function launch(){ |
20 | 22 |
|
21 | 23 |
$controlleur = new Controlleur($this); |
22 |
- print( $controlleur->vue->ecran ); |
|
24 |
+ if(!$this->url->page['control']) { |
|
25 |
+ print($controlleur->vue->ecran); |
|
26 |
+ } |
|
23 | 27 |
} |
24 | 28 |
|
25 | 29 |
} |
... | ... |
@@ -4,6 +4,9 @@ define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" |
4 | 4 |
|
5 | 5 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php"; |
6 | 6 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php"; |
7 |
+require CLASSES_PATH.DIRECTORY_SEPARATOR."bdd.class.php"; |
|
8 |
+ |
|
9 |
+require APPLICATION_PATH . DIRECTORY_SEPARATOR . "parameters.php"; |
|
7 | 10 |
|
8 | 11 |
class Application |
9 | 12 |
{ |
... | ... |
@@ -4,6 +4,7 @@ define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" |
4 | 4 |
|
5 | 5 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php"; |
6 | 6 |
require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php"; |
7 |
+ |
|
7 | 8 |
class Application |
8 | 9 |
{ |
9 | 10 |
public $url; |
... | ... |
@@ -11,8 +12,9 @@ class Application |
11 | 12 |
public function __construct(){ |
12 | 13 |
$this->url = new Url(); |
13 | 14 |
} |
14 |
- |
|
15 |
+ |
|
15 | 16 |
public function launch(){ |
17 |
+ |
|
16 | 18 |
$controlleur = new Controlleur($this); |
17 | 19 |
print( $controlleur->vue->ecran ); |
18 | 20 |
} |
1 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,20 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+define( "CONTROLLERS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs"); |
|
4 |
+ |
|
5 |
+require CLASSES_PATH.DIRECTORY_SEPARATOR."url.class.php"; |
|
6 |
+require CLASSES_PATH.DIRECTORY_SEPARATOR."controlleur.class.php"; |
|
7 |
+class Application |
|
8 |
+{ |
|
9 |
+ public $url; |
|
10 |
+ |
|
11 |
+ public function __construct(){ |
|
12 |
+ $this->url = new Url(); |
|
13 |
+ } |
|
14 |
+ |
|
15 |
+ public function launch(){ |
|
16 |
+ $controlleur = new Controlleur($this); |
|
17 |
+ print( $controlleur->vue->ecran ); |
|
18 |
+ } |
|
19 |
+ |
|
20 |
+} |