$data->selectAllT1())); } public function addxAction() { $formdata = $this->params()->fromPost(); $f1 = $formdata['f1']; $f2 = $formdata['f2']; $data = new DataX(); $data->insertOneT1(new T1($f1, $f2)); $this->redirect()->toRoute('t1x', [ 'action' => 'showx' ]); } public function delxAction() { $querydata = $this->params()->fromQuery(); $f1 = $querydata['f1']; $data = new DataX(); $data->deleteOneT1($f1); $this->redirect()->toRoute('t1x', [ 'action' => 'showx' ]); } }