示例#1
0
 public function execute()
 {
     $config = $this->getConfig();
     $avance = new avanceAguaSurcoTable($config);
     $this->objAvance = $avance->getAll();
     $this->defineView('avanceAguaSurco', 'index', 'html');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $id = filter_input(INPUT_GET, 'id');
     $update = new avanceAguaSurcoTable($config);
     $this->objAvance = $update->getById($id);
     $this->defineView('avanceAguaSurco', 'actualizar', 'html');
 }
 public function execute()
 {
     $config = $this->getConfig();
     $numero = filter_input(INPUT_POST, 'numero');
     $surco = filter_input(INPUT_POST, 'surco');
     $insertar = new avanceAguaSurcoTable($config);
     $insertar->setSurcoId($surco);
     $insertar->setControlAdministrativoRiegoId($numero);
     $insertar->save();
     header('Location: ' . $config->getUrl() . 'index.php/avanceAguaSurco/index');
 }