Vous êtes connecté en tant que anonymous Se Deconnecter
Browse code

Correction majuscule Controlleur

Emmanuel ROY authored on 30/04/2020 06:59:41
Showing 1 changed files
... ...
@@ -18,8 +18,8 @@ class Controlleur{
18 18
             $url_params = $application->url->page['params'];
19 19
 	        require TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . '.php';
20 20
         } else {
21
-            $this->modele = new modele($application->url->page);
22
-            $this->vue = new vue($this);
21
+            $this->modele = new Modele($application->url->page);
22
+            $this->vue = new Vue($this);
23 23
         }
24 24
 	}
25 25
 	
Browse code

initial commmit de la branche Nude with composer

git authored on 14/03/2019 16:48:02
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,26 @@
1
+<?php
2
+
3
+namespace MVC\Classe;
4
+
5
+define( "MODELS_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "modeles");
6
+define( "VIEW_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "vues");
7
+define( "CONTROLLER_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "include" . DIRECTORY_SEPARATOR . "controlleurs");
8
+define( "TRAITEMENT_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "traitements");
9
+
10
+class Controlleur{
11
+	
12
+	public $modele;
13
+	public $vue;
14
+	
15
+	public function __construct($application){
16
+
17
+	    if($application->url->page['control']){
18
+            $url_params = $application->url->page['params'];
19
+	        require TRAITEMENT_PATH . DIRECTORY_SEPARATOR . $application->url->page['name'] . '.php';
20
+        } else {
21
+            $this->modele = new modele($application->url->page);
22
+            $this->vue = new vue($this);
23
+        }
24
+	}
25
+	
26
+}