$data->selectAllT1())); } public function addAction() { $formdata = $this->params()->fromPost(); $f1 = $formdata['f1']; $f2 = $formdata['f2']; $data = new Data(); $data->insertOneT1(new T1($f1, $f2)); $this->redirect()->toRoute('t1', [ 'action' => 'show' ]); } public function delAction() { $querydata = $this->params()->fromQuery(); $f1 = $querydata['f1']; $data = new Data(); $data->deleteOneT1($f1); $this->redirect()->toRoute('t1', [ 'action' => 'show' ]); } }