D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
rosario
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ConLayoutVerFoto.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of VerPerfil * * @copyright (c) year, Cesar Szpak - Celke */ class ConLayoutVerFoto { private $Dados; private $DadosId; public function verFoto($DadosId = null) { $this->DadosId = (int) $DadosId; if (!empty($this->DadosId)) { $verLayoutFoto = new \App\gre\Models\ModLayoutVerFoto(); $this->Dados['dados_layout_foto'] = $verLayoutFoto->verLayoutFoto($this->DadosId); $botao = ['cad_lay' => ['menu_controller' => 'con-layout-cadastrar', 'menu_metodo' => 'cad-layout'], 'lis_lay' => ['menu_controller' => 'con-layout', 'menu_metodo' => 'listar'], 'vis_lay' => ['menu_controller' => 'con-layout-ver', 'menu_metodo' => 'ver-layout'], 'del_lay' => ['menu_controller' => 'con-layout-apagar', 'menu_metodo' => 'apagar-layout'],]; $carregarView = new \Core\ConfigViewImprSimples("gre/Views/Layout/VieLayoutFoto", $this->Dados); $carregarView->renderizarGre(); } else { $_SESSION['msg'] = "<div class='alert alert-danger'>Erro: Foto não encontrada!</div>"; $UrlDestino = URLADM . 'con-layout/listar'; header("Location: $UrlDestino"); } } }