Cannot redeclare class
Pessoal tenho o seguinte erro:
Fatal error: Cannot redeclare class falecimentoDTO in C:\xampp5\htdocs\grupocolombano.com.br\DTO\falecimentoDTO.php on line 14
falecimentoDTO.php :
<?php
/*
* To change this license header, choose License Headers in Project Properties.
* To change this template file, choose Tools | Templates
* and open the template in the editor.
*/
/**
* Description of falecimentoDTO
*
* @author MARKETING
*/
class falecimentoDTO <-Linha 14 {
private $id;
private $nome;
private $informa;
private $img;
private $datanascimento;
private $datafalecimento;
private $status;
private $op;
function getId() {
return $this->id;
}
function getNome() {
return $this->nome;
}
function getInforma() {
return $this->informa;
}
function getImg() {
return $this->img;
}
function getDatanascimento() {
return $this->datanascimento;
}
function getDatafalecimento() {
return $this->datafalecimento;
}
function getStatus() {
return $this->status;
}
function getOp() {
return $this->op;
}
function setId($id) {
$this->id = $id;
}
function setNome($nome) {
$this->nome = $nome;
}
function setInforma($informa) {
$this->informa = $informa;
}
function setImg($img) {
$this->img = $img;
}
function setDatanascimento($datanascimento) {
$this->datanascimento = $datanascimento;
}
function setDatafalecimento($datafalecimento) {
$this->datafalecimento = $datafalecimento;
}
function setStatus($status) {
$this->status = $status;
}
function setOp($op) {
$this->op = $op;
}
}
falecimentoINT.php Aonde a classe esta sendo chamada:
<?php
require_once '../DTO/falecimentoDTO.php';
require_once '../CTR/falecimentoCTR.php';
require_once '../CTR/materiaCTR.php';
$falecimentoDTO = new falecimentoDTO();
$falecimentoCTR = new falecimentoCTR();
$materiaCTR = new materiaCTR();
$falecimentoDTO->setDatafalecimento($_POST['datafalecimento']);
$falecimentoDTO->setDatanascimento($_POST['datanascimento']);
$falecimentoDTO->setInforma($_POST['informa']);
$falecimentoDTO->setNome($_POST['nome']);
$falecimentoDTO->setStatus($_POST['status']);
$imagem = $materiaCTR->trataFoto($_FILES['imagem'], $_POST['nome_ant'], 555, 310, $txt);
$falecimentoDTO->setImg($imagem);
print_r($falecimentoDTO);
if (isset($_POST['cad'])) {
$falecimentoDTO->setOp(1);
if ($falecimentoCTR->modificarFalecimento($falecimentoDTO)) {
// echo "<script>location.href ='../cmsbr/listarMateriaVIEW.php?cad=ok';</script>";
} else {
//echo "<script>location.href ='../cmsbr/listarMateriaVIEW.php?cad=fail';</script>";
}
}
}
Já fiz de tudo e não acho o problema! Alguem ai pode me ajudar?
Discussão (6)
Carregando comentários...