1 | 1 |
deleted file mode 100644 |
... | ... |
@@ -1,26 +0,0 @@ |
1 |
-<?php |
|
2 |
- |
|
3 |
-define( "LAYOUT_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "layout"); |
|
4 |
- |
|
5 |
- |
|
6 |
-class Vue{ |
|
7 |
- |
|
8 |
- public $ecran; |
|
9 |
- public $block_body; |
|
10 |
- |
|
11 |
- public function __construct($baseControlleur){ |
|
12 |
- |
|
13 |
- extract( $baseControlleur->modele->page ); |
|
14 |
- |
|
15 |
- ob_start(); |
|
16 |
- require CONTROLLER_PATH.DIRECTORY_SEPARATOR.$name.'.php'; |
|
17 |
- require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml'; |
|
18 |
- $this->block_body = ob_get_clean(); |
|
19 |
- |
|
20 |
- ob_start(); |
|
21 |
- require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml"; |
|
22 |
- $this->ecran = ob_get_clean(); |
|
23 |
- |
|
24 |
- } |
|
25 |
- |
|
26 |
-} |
... | ... |
@@ -12,9 +12,8 @@ class Vue{ |
12 | 12 |
|
13 | 13 |
extract( $baseControlleur->modele->page ); |
14 | 14 |
|
15 |
- print_r($baseControlleur->modele->page); |
|
16 |
- |
|
17 | 15 |
ob_start(); |
16 |
+ require CONTROLLER_PATH.DIRECTORY_SEPARATOR.$name.'.php'; |
|
18 | 17 |
require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml'; |
19 | 18 |
$this->block_body = ob_get_clean(); |
20 | 19 |
|
... | ... |
@@ -11,15 +11,17 @@ class Vue{ |
11 | 11 |
public function __construct($baseControlleur){ |
12 | 12 |
|
13 | 13 |
extract( $baseControlleur->modele->page ); |
14 |
- |
|
14 |
+ |
|
15 |
+ print_r($baseControlleur->modele->page); |
|
16 |
+ |
|
15 | 17 |
ob_start(); |
16 |
- require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml'; |
|
18 |
+ require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml'; |
|
17 | 19 |
$this->block_body = ob_get_clean(); |
18 |
- |
|
20 |
+ |
|
19 | 21 |
ob_start(); |
20 | 22 |
require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml"; |
21 | 23 |
$this->ecran = ob_get_clean(); |
22 |
- |
|
24 |
+ |
|
23 | 25 |
} |
24 | 26 |
|
25 | 27 |
} |
Signed-off-by: Emmanuel ROY <ornithorynxe@live.fr>
Emmanuel ROY authored on 09/12/2018 04:44:371 | 1 |
new file mode 100644 |
... | ... |
@@ -0,0 +1,25 @@ |
1 |
+<?php |
|
2 |
+ |
|
3 |
+define( "LAYOUT_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "layout"); |
|
4 |
+ |
|
5 |
+ |
|
6 |
+class Vue{ |
|
7 |
+ |
|
8 |
+ public $ecran; |
|
9 |
+ public $block_body; |
|
10 |
+ |
|
11 |
+ public function __construct($baseControlleur){ |
|
12 |
+ |
|
13 |
+ extract( $baseControlleur->modele->page ); |
|
14 |
+ |
|
15 |
+ ob_start(); |
|
16 |
+ require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.php'; |
|
17 |
+ $this->block_body = ob_get_clean(); |
|
18 |
+ |
|
19 |
+ ob_start(); |
|
20 |
+ require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml"; |
|
21 |
+ $this->ecran = ob_get_clean(); |
|
22 |
+ |
|
23 |
+ } |
|
24 |
+ |
|
25 |
+} |