public function getemployeedataAction() { $this->_helper->layout->disableLayout(); $empid = $this->_request->getParam('empid'); $empArr = explode('-', $empid); $con = $empArr[0]; $id = $empArr[1]; $empscreeningform = new Default_Form_empscreening(); $empscreeningModel = new Default_Model_Empscreening(); $personalData = $empscreeningModel->getEmpPersonalData($id, $con); $hrEmail = 'false'; $mngmntEmail = 'false'; if (isset($personalData[0]['businessid'])) { if (defined('BG_CHECKS_HR_' . $personalData[0]['businessid'])) { $hrEmail = 'true'; } if (defined('BG_CHECKS_MNGMNT_' . $personalData[0]['businessid'])) { $mngmntEmail = 'true'; } } $addressData = $empscreeningModel->getEmpAddressData($id, $con); $companyData = $empscreeningModel->getEmpCompanyData($id, $con); $this->view->personalData = $personalData; $this->view->addressData = $addressData; $this->view->companyData = $companyData; $this->view->hrEmail = $hrEmail; $this->view->mngmntEmail = $mngmntEmail; }