public function execute()
 {
     $config = $this->getConfig();
     $tipoTercero = new tipoTerceroTable($config);
     $id = filter_input(INPUT_GET, 'id');
     $tipoTercero->setId($id);
     $tipoTercero->delete();
     header('Location: ' . $config->getUrl() . 'index.php/tipoTercero/index');
 }
 public function execute()
 {
     $id = filter_input(INPUT_POST, 'tit_id');
     $tipoTercero = new tipoTerceroTable();
     $tipoTercero->setId($id);
     $tipoTercero->delete();
     $variables = array('data' => array('code' => 200));
     $this->defineView('tipoTercero', 'eliminar', $variables, 'json');
 }