public function execute() { $config = $this->getConfig(); $metodo = new metodoRiegoTable($config); $indicio = filter_input(INPUT_POST, 'filtro'); $this->objMetodo = $metodo->getAll($indicio); $this->defineView('metodoRiego', 'index', 'html'); }
public function execute() { $config = $this->getConfig(); $metodo = new metodoRiegoTable($config); $buscar = filter_input(INPUT_POST, 'filtro'); $this->objMetodo = $metodo->getAll($buscar); $this->defineView('metodoRiego', 'listar', 'html'); }
public function execute() { $id = filter_input(INPUT_GET, 'id'); $config = $this->getConfig(); $update = new metodoRiegoTable($config); $resul = $update->getById($id); $this->ObjMetodo = $resul; $this->defineView('metodoRiego', 'actualizar', 'html'); }
public function execute() { $config = $this->getConfig(); $metodo = new metodoRiegoTable($config); $id = filter_input(INPUT_GET, 'id'); $metodo->setId($id); $metodo->delete(); header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index'); }
public function execute() { $descripcion = filter_input(INPUT_POST, 'descripcion'); $config = $this->getConfig(); $insertar = new metodoRiegoTable($config); $insertar->setDescripcion($descripcion); $insertar->save(); header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index'); }
public function execute() { $desc = filter_input(INPUT_POST, 'descripcion'); $id = filter_input(INPUT_POST, 'id'); $config = $this->getConfig(); $update = new metodoRiegoTable($config); $update->setDescripcion($desc); $update->setId($id); $update->update(); header('Location: ' . $config->getUrl() . 'index.php/metodoRiego/index'); }