public function exportDelegation($id_delegation) { $model = new DelegSettleView(); $this->delegation = $model->findOne($id_delegation); $model = new TetaEmployeerAccounts(); $this->tetaEmployeerAccounts = $model->fetchRow('PRAC_ID = ' . addslashes($this->delegation->teta_id)); $this->position = 0; $this->insertOG(); $this->insertTravel(); $this->insertAdditionalCosts(); $this->insertOvernight(); $this->insertDiet(); }
public function tetatestAction() { try { $model = new TetaEmployeerAccounts(); $testEmploy = $model->fetchAll(null, null, 1); $tetaDb = new TetaEmployeerImport(); $import = $tetaDb->fetchAll($tetaDb->select()->limit(1)); $this->view->status = True; } catch (Exception $exc) { $this->view->status = FALSE; $this->view->error = $exc->getMessage(); } $this->renderScript('system/test.phtml'); }