SAND-framework/application/class/Vue.php

29 lines
553 B
PHP
Raw Normal View History

2017-06-13 22:54:16 +02:00
<?php
namespace MVC\Classe;
2017-06-13 22:54:16 +02:00
define( "LAYOUT_PATH" , APPLICATION_PATH . DIRECTORY_SEPARATOR . "layout");
class Vue{
public $ecran;
public $block_body;
public function __construct($baseControlleur){
extract( $baseControlleur->modele->page );
2019-03-05 13:26:50 +01:00
2017-06-13 22:54:16 +02:00
ob_start();
2019-03-05 16:49:15 +01:00
require CONTROLLER_PATH.DIRECTORY_SEPARATOR.$name.'.php';
2019-03-05 13:26:50 +01:00
require VIEW_PATH.DIRECTORY_SEPARATOR.$name.'.phtml';
2017-06-13 22:54:16 +02:00
$this->block_body = ob_get_clean();
2019-03-05 13:26:50 +01:00
2017-06-13 22:54:16 +02:00
ob_start();
require LAYOUT_PATH.DIRECTORY_SEPARATOR."standard.phtml";
$this->ecran = ob_get_clean();
2019-03-05 13:26:50 +01:00
2017-06-13 22:54:16 +02:00
}
}