D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
var
/
www
/
html
/
idoso_ant
/
adm
/
app
/
gre
/
Controllers
/
Filename :
ApagarTipoLancamento.php
back
Copy
<?php namespace App\gre\Controllers; if (!defined('URL')) { header("Location: /"); exit(); } /** * Description of ApagarEstTipoLancamento * @copyright (c) year, Carlos Marques - CM */ class ApagarTipoLancamento { private $DadosId; public function apagarTipoLanc($DadosId = null) { $this->DadosId = filter_input_array(INPUT_GET, FILTER_DEFAULT); unset($this->DadosId['url']); unset($this->DadosId['nome']); if (!empty($this->DadosId)) { $apagarTipoLanc= new \App\gre\Models\GreApagarTipoLancamento(); $apagarTipoLanc->apagarTipoLanc($this->DadosId['id']); } else { $_SESSION['msg'] = "<div class='alert alert-danger' role='alert'> Erro: Necessário selecionar uma Tipo de Lançamento! <button type='button' class='close' data-dismiss='alert' aria-label='Close'> <span aria-hidden='true'>×</span></button> </div>"; } $UrlDestino = URLADM . 'tipo-lancamento/listar'; header("Location: $UrlDestino"); } }