function addProgramTypeAction() { $item = new Accounting_Form_Frmitem(); $frm_item = $item->FrmProgramType(); Application_Model_Decorator::removeAllDecorator($frm_item); $this->view->frm_item = $frm_item; }
function editServiceTypeAction() { if ($this->getRequest()->isPost()) { $_data = $this->getRequest()->getPost(); $model = new Accounting_Model_DbTable_DbServiceType(); $row = $model->AddServiceType($_data); Application_Form_FrmMessage::Sucessfull("EDIT_SUCCESS", "/accounting/services/index"); } $id = $this->getRequest()->getParam('id'); $model = new Accounting_Model_DbTable_DbServiceType(); $row = $model->getServiceTypeById($id); $item = new Accounting_Form_Frmitem(); $frm_item = $item->FrmProgramType($row); Application_Model_Decorator::removeAllDecorator($frm_item); $this->view->frm_item = $frm_item; }