D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Controllers
/
Filename :
VerAcolhimento.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of VerAcolhimento * * @copyright (c) year, Carlos Marques - CM */ class VerAcolhimento { private $Dados; private $DadosId; public function verAcolh($DadosId = null) { $this->DadosId = $DadosId; if (!empty($this->DadosId)) { $verAcolh = new \App\gre\Models\GreVerAcolhimento(); $this->Dados['dadosAcolh'] = $verAcolh->verAcolh($this->DadosId); $botao = ['list_acolh' => ['menu_controller' => 'acolhimento', 'menu_metodo' => 'listar'], 'edit_acolh' => ['menu_controller' => 'editar-acolhimento', 'menu_metodo' => 'edit-acolh'], 'del_acolh' => ['menu_controller' => 'apagar-acolhimento', 'menu_metodo' => 'apagar-acolh']]; $listarBotao = new \App\adms\Models\AdmsBotao(); $this->Dados['botao'] = $listarBotao->valBotao($botao); $listarMenu = new \App\adms\Models\AdmsMenu(); $this->Dados['menu'] = $listarMenu->itemMenu(); $carregarView = new \Core\ConfigView("gre/Views/Acolhimento/verAcolhimento", $this->Dados); $carregarView->renderizar(); } else { $_SESSION['msg'] = "<div class='alert alert-danger'>Erro: Acolhimento não encontrada!</div>"; $UrlDestino = URLADM . 'acolhimento/listar'; header("Location: $UrlDestino"); } } }