public function approverequisitionAction() { $req_model = new Default_Model_Requisition(); $req_data = $req_model->getReqCodes('Initiated'); $auth = Zend_Auth::getInstance(); if ($auth->hasIdentity()) { $loginUserId = $auth->getStorage()->read()->id; } if (isset($_POST['btnsubmit'])) { $menumodel = new Default_Model_Menu(); $data = array('req_status' => $_POST['sel_app_status'], 'modifiedby' => $loginUserId, 'modifiedon' => gmdate("Y-m-d H:i:s")); $where = "id = " . $_POST['sel_req_code']; $req_model->SaveorUpdateRequisitionData($data, $where); $actionflag = 2; $objidArr = $menumodel->getMenuObjID('/roles'); $objID = $objidArr[0]['id']; sapp_Global::logManager($objID, $actionflag, $loginUserId, $_POST['sel_req_code']); } $this->view->req_data = $req_data; }