public function execute() { $config = $this->getConfig(); $id = filter_input(INPUT_GET, 'id'); $turno = new turnoTable($config); $turno->setId($id); $this->objturno = $turno->delete(); header('Location: ' . $config->getUrl() . 'index.php/turno/index'); exit; }