public function displayemployeesAction() { $exist_employees = array(); $init_id = $this->_getParam('init_id', null); $context = $this->_getParam('context', null); $line1_id = $this->_getParam('line1_id', null); $selected_managers_arr = $this->_getParam('sel_line', array()); $app_init_model = new Default_Model_Appraisalinit(); $init_data = $app_init_model->getConfigData($init_id); if (count($init_data) > 0) { $init_data = $init_data[0]; } $employees = $app_init_model->getEmpInit($init_id, $init_data, $selected_managers_arr); if ($context == 'edit') { $exist_employees = $app_init_model->getInitExistEmp($init_id, $line1_id); } $this->view->init_id = $init_id; $this->view->employees = $employees; $this->view->context = $context; $this->view->exist_employees = $exist_employees; $this->view->line1_id = $line1_id; $this->render('displayemployees'); }