function eliminar()
 {
     $id = $_REQUEST['id'];
     $template = new Template();
     $estado = $template->cambiaEstadoTemplate($id);
     if ($estado) {
         $ruta['ruta'] = "/template/listar";
         $this->view->show("ruteador.phtml", $ruta);
     }
 }