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

Initialisation de l'application modulaire Symfony43 sans systeme de template maitre

Emmanuel ROY authored on 09/08/2019 09:25:45
Showing 1 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,20 @@
1
+<?php
2
+
3
+namespace MVC\Classe;
4
+
5
+class Modular{
6
+
7
+    private $app = "";
8
+
9
+    public function  __construct($appName){
10
+        $this->app = $appName;
11
+    }
12
+
13
+    public function getAppName(){
14
+        return $this->app;
15
+    }
16
+
17
+    public function load(){
18
+        require MODULES_PATH . DIRECTORY_SEPARATOR . $this->getAppName() . DIRECTORY_SEPARATOR . "public" . DIRECTORY_SEPARATOR . "index.php";
19
+    }
20
+}
0 21
\ No newline at end of file