public function execute() { $config = $this->getConfig(); $tipoId = new tipoIdTable($config); $id = filter_input(INPUT_GET, 'id'); $tipoId->setId($id); $tipoId->delete(); header('Location: ' . $config->getUrl() . 'index.php/tipoId/index'); }
public function execute() { $config = $this->getConfig(); $formTipoId = filter_input_array(INPUT_POST)['tipoId']; $tipoId = new tipoIdTable($config); $tipoId->setId($formTipoId['id']); $tipoId->setDescripcion($formTipoId['descripcion']); $this->objTipoId = $tipoId->update(); header('Location: ' . $config->getUrl() . 'index.php/tipoId/index'); exit; }