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