public function delete()
 {
     $obj = new tipo_evaluacion();
     $p = $obj->delete($_GET['id']);
     if ($p[0]) {
         header('Location: index.php?controller=tipo_evaluacion');
     } else {
         $data = array();
         $view = new View();
         $data['msg'] = $p[1];
         $data['url'] = 'index.php?controller=tipo_evaluacion';
         $view->setData($data);
         $view->setTemplate('../view/_Error_App.php');
         $view->setLayout('../template/Layout.php');
         $view->render();
     }
 }
<?php

session_start();
require "../modelos/modelo.tipo_evaluacion.php";
require "../modelos/modelo.registrar_auditoria.php";
$mensaje = array();
$rs = array();
if (isset($_POST["desc_tipo_evaluacion"])) {
    if ($_POST["desc_tipo_evaluacion"] != "") {
        $tipo_evaluacion = new tipo_evaluacion();
        if ($_POST["id_tipo_evaluacion"] == "") {
            $id_tipo_evaluacion = 0;
        } else {
            $id_tipo_evaluacion = $_POST["id_tipo_evaluacion"];
        }
        $rs = $tipo_evaluacion->registrar_tipo_evaluacion($id_tipo_evaluacion, $_POST["desc_tipo_evaluacion"]);
        //die(json_encode($rs));
        if ($rs == "error") {
            $mensaje[0] = "error_bd";
        } else {
            $mensaje[0] = "registro_exitoso";
            $mensaje[1] = $rs[0][0];
            /////////////////////////////////////////////////--AUDITORIA--///////////////////////////////////////
            $auditoria_mod = new auditoria("tipo de evaluacion", "actualizacion tipo de evaluacion");
            $auditoria = $auditoria_mod->registrar_auditoria();
            if ($auditoria == false) {
                $mensaje[0] = 'error_auditoria';
                die(json_encode($mensaje));
            }
            /////////////////////////////////////////////////////////////////////////////////////////////////////
            ////////////////////////////////////
require "../modelos/modelo.tipo_evaluacion.php";
require "../modelos/modelo.paginacion_consultas.php";
$mensaje = array();
$rs = array();
if (isset($_POST["f_eva"]) && $_POST["f_eva"] != "") {
    $fmod = strtoupper($_POST["f_eva"]);
} else {
    $fmod = '';
}
$offset = $_POST["offset"];
$limit = $_POST["limit"];
$actual = $_POST["actual"];
$nom_fun = "consultar_cuerpo_tabla_teva";
///////////////////////////////////////////////
//declaro la clase
$tipo_evaluacion = new tipo_evaluacion();
$rs = $tipo_evaluacion->consultar_cuerpo_evaluacion($fmod, $offset, $limit);
//die(json_encode($rs));
if ($rs == "error") {
    $mensaje[0] = "error";
    die(json_encode($mensaje));
} else {
    for ($i = 0; $i <= count($rs) - 1; $i++) {
        $k = $i + 1;
        $cuerpo_mod .= "<tr>\n\t\t\t\t\t\t\t<td width='50%'>" . $rs[$i][1] . "</td>2\n\t\t\t\t\t\t\t<td width='25%'><button class='btn btn-danger' id='btn_selec" . $k . "' onmouseover='cambiar_color_btn(this);' onmouseout='cambiar_color_btn2(this);' onclick='consultar_tp_eva(" . $rs[$i][0] . ");' ><span class='glyphicon glyphicon-ok'></span></button></td>\t\n\t\t\t\t\t </tr>";
    }
    if ($actual == "") {
        $actual = 0;
    }
    $obj_paginador = new paginacion($actual, $tipo_evaluacion->num_rows, $nom_fun);
    $mensaje[0] = $cuerpo_mod;
<?php

session_start();
require_once "../modelos/modelo.tipo_evaluacion.php";
if (isset($_GET['id'])) {
    $id = $_GET['id'];
} else {
    $id = "";
}
if (isset($_GET['idm'])) {
    $idm = $_GET['idm'];
} else {
    $idm = '';
}
////creo el objeto
$tipo_evaluacion = new tipo_evaluacion();
$rs_tipo_evaluacion = $tipo_evaluacion->consultar_tipo_evaluacion($id);
$a = '';
$opcion .= '<option id="0" value="0">[Tipo de evaluaci&oacute;n]</option>';
for ($i = 0; $i <= count($rs_tipo_evaluacion) - 1; $i++) {
    if ($rs_tipo_evaluacion[$i][0] == $idm) {
        $a = "selected";
    } else {
        $a = "";
    }
    //$b=$i+1;
    $opcion .= '<option id="' . $rs_tipo_evaluacion[$i][0] . '" value="' . $rs_tipo_evaluacion[$i][0] . '" ' . $a . '>' . $rs_tipo_evaluacion[$i][1] . '</option>';
}
die($opcion);
/////////////////////////////////////////////////////
<?php

session_start();
require "../modelos/modelo.tipo_evaluacion.php";
$mensaje = array();
$rs = array();
if (isset($_POST["id_tp_eva"]) && $_POST["id_tp_eva"] != "") {
    $id_tp_eva = $_POST["id_tp_eva"];
}
//declaro la clase
$tipo_evaluacion = new tipo_evaluacion();
$rs = $tipo_evaluacion->consultar_tipo_evaluacion_id($id_tp_eva);
if ($rs == "error") {
    $mensaje[0] = "error";
    die(json_encode($mensaje));
} else {
    die(json_encode($rs));
}