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

Fonctionnement partiel du rendu de Blade

Emmanuel ROY authored on 12/08/2019 11:12:37
Showing 4 changed files
1 1
new file mode 100644
... ...
@@ -0,0 +1,3 @@
1
+vendor
2
+cache
3
+/composer.lock
... ...
@@ -20,21 +20,21 @@ class Vue{
20 20
 		ob_start();
21 21
         require CONTROLLER_PATH.DIRECTORY_SEPARATOR.$name.'.php';
22 22
 
23
-        /*$paths = new \SplPriorityQueue;
23
+        $paths = new \SplPriorityQueue;
24 24
 
25 25
         $paths->insert(VIEW_PATH.DIRECTORY_SEPARATOR."system", 100);
26 26
         $paths->insert(VIEW_PATH.DIRECTORY_SEPARATOR."templating", 200);
27 27
         //$paths->insert('path/to/theme', 300);
28 28
 
29
-        $renderer = new \Windwalker\Renderer\BladeRenderer($paths, array('cache_path' => VIEW_PATH.DIRECTORY_SEPARATOR."/cache"));
29
+        $renderer = new \Windwalker\Renderer\BladeRenderer($paths, array('cache_path' => VIEW_PATH.DIRECTORY_SEPARATOR."cache"));
30 30
 
31 31
         $renderer->render( $name , $templateData);
32
-        */
33
-        require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml';
32
+
33
+        /*require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml';
34 34
 		$this->block_body = ob_get_clean();
35 35
 
36 36
 		ob_start();
37
-		require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml";
37
+		require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml";*/
38 38
 		$this->ecran = ob_get_clean();
39 39
 
40 40
 	}
... ...
@@ -1,4 +1,4 @@
1
-@extends('layout.app')
1
+@extends('layout')
2 2
 
3 3
 @section('sidebar')
4 4
     @parent
... ...
@@ -9,36 +9,6 @@
9 9
 
10 10
         "php": "^7.1.3",
11 11
         "windwalker/renderer": "~3.0",
12
-        "illuminate/view": "5.*",
13
-        "ext-ctype": "*",
14
-        "ext-iconv": "*",
15
-        "sensio/framework-extra-bundle": "^5.4",
16
-        "symfony/cache",
17
-        "symfony/cache-contracts",
18
-        "symfony/config",
19
-        "symfony/console": "4.3.*",
20
-        "symfony/debug",
21
-        "symfony/dependency-injection",
22
-        "symfony/dotenv": "4.3.*",
23
-        "symfony/event-dispacher",
24
-        "symfony/event-dispacher-contracts",
25
-        "symfony/filesytem",
26
-        "symfony/finder",
27
-        "symfony/flex": "^1.3.1",
28
-        "symfony/framework-bundle": "4.3.*",
29
-        "symfony/http-foundation",
30
-        "symfony/http-kernel",
31
-        "symfony/mime",
32
-        "symfony/polyfill-intl-idn",
33
-        "symfony/polyfill-mbstring",
34
-        "symfony/polyfill-php72",
35
-        "symfony/polyfill-php73",
36
-        "symfony/routing",
37
-        "symfony/service-contracts",
38
-        "symfony/translation-contracts",
39
-        "symfony/twig-bridge",
40
-        "symfony/twig-bundle": "4.3.*",
41
-        "symfony/var-exporter",
42
-        "symfony/yaml": "4.3.*"
12
+        "illuminate/view": "5.*"
43 13
     }
44 14
 }