2017-06-13 22:54:16 +02:00
|
|
|
<?php
|
|
|
|
|
|
|
|
define( "LAYOUT_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "layout");
|
|
|
|
|
|
|
|
|
|
|
|
class Vue{
|
|
|
|
|
|
|
|
public $ecran;
|
|
|
|
public $block_body;
|
|
|
|
|
|
|
|
public function __construct($baseControlleur){
|
|
|
|
|
|
|
|
extract( $baseControlleur->modele->page );
|
|
|
|
|
|
|
|
ob_start();
|
2018-12-09 04:44:37 +01:00
|
|
|
require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml';
|
2017-06-13 22:54:16 +02:00
|
|
|
$this->block_body = ob_get_clean();
|
|
|
|
|
|
|
|
ob_start();
|
|
|
|
require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml";
|
|
|
|
$this->ecran = ob_get_clean();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|