public function execute() { $config = $this->getConfig(); $detalle = new detalleAguaSurcoTable($config); $this->objDetalle = $detalle->getAll(); $this->defineView('detalleAguaSurco', 'index', 'html'); }
public function execute() { $id = filter_input(INPUT_GET, 'id'); $config = $this->getConfig(); $update = new detalleAguaSurcoTable($config); $this->objDetalle = $update->getById($id); $this->defineView('detalleAguaSurco', 'actualizar', 'html'); }
public function execute() { $id = filter_input(INPUT_POST, 'id'); $item = filter_input(INPUT_POST, 'item'); $cantidad = filter_input(INPUT_POST, 'cantidad'); $numero = filter_input(INPUT_POST, 'numero'); $config = $this->getConfig(); $insertar = new detalleAguaSurcoTable($config); $insertar->setItem($item); $insertar->setCantidadSurco($cantidad); $insertar->setControlAdministrativoRiegoId($numero); $insertar->save(); header('Location: ' . $config->getUrl() . 'index.php/detalleAguaSurco/index'); }