public function alterAction() { $cdsupply = $this->_request->getParam("cdsupply"); $modelSupplyType = new SupplytypeModel(); $supplyTypeData = $modelSupplyType->fetchAll($modelSupplyType->getAllSupplytype()); $this->view->supplyTypeData = $supplyTypeData; $modelMeasureMentunit = new MeasurementunitModel(); $measureMentunitData = $modelMeasureMentunit->fetchAll($modelMeasureMentunit->getAllMeasurementUnit()); $this->view->measureMentunitData = $measureMentunitData; $modelSupplyflowtype = new SupplyflowtypeModel(); $SupplyflowtypeData = $modelSupplyflowtype->fetchAll($modelSupplyflowtype->getAllSupplyFlowType()); $this->view->supplyflowtypeData = $SupplyflowtypeData; $modelsupplysupplyflowtype = new SupplysupplyflowtypeModel(); $supplysupplyflowtype = $modelsupplysupplyflowtype->fetchAll($modelsupplysupplyflowtype->getSupplySupplyFlowTypeByCdSupply($cdsupply)); $this->view->supplysupplyflowtype = $supplysupplyflowtype; $modelSupply = new SupplyModel(); $supplyData = $modelSupply->fetchRow($modelSupply->getSupplyFlowTypeByCdSupply($cdsupply)); $this->view->supply = $supplyData; // print_r($supplyData); die; }