public function execute() { $config = $this->getConfig(); $formturno = filter_input_array(INPUT_POST)['turno']; $turno = new turnoTable($config); $turno->setDescripcion($formturno['descripcion']); $turno->setHoraInicio($formturno['horainicio']); $turno->setHoraFin($formturno['horafin']); $turno->setEstado($formturno['estado']); $this->objturno = $turno->save(); header('Location: ' . $config->getUrl() . 'index.php/turno/index'); exit; }