D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
core
/
Filename :
ConfigView.php
back
Copy
<?php namespace App\gre\core; /** * Description of ConfigView * * @copyright (c) year, Cesar Szpak - Celke */ class ConfigView { private $Nome; private $Dados; public function __construct($Nome, array $Dados = null) { $this->Nome = (string) $Nome; $this->Dados = $Dados; } public function renderizarGre() { include 'app/gre/Views/include/cabecalho_gre.php'; include 'app/adms/Views/include/header.php'; include 'app/adms/Views/include/sidebar.php'; // 'gre/Views/Unidade/listarUnidade' if (file_exists('app/' . $this->Nome . '.php')) { include 'app/' . $this->Nome . '.php'; }else{ echo "Erro ao carregar a Página e aqui: {$this->Nome}"; } include 'app/gre/Views/include/rodape_gre.php'; } public function renderizarLogin() { include 'app/adms/Views/include/cabecalho.php'; if (file_exists('app/' . $this->Nome . '.php')) { include 'app/' . $this->Nome . '.php'; }else{ echo "Erro ao carregar a Página aqui: {$this->Nome}"; } } }