public function displayreportmanagersAction() { $line1_data = array(); $line_managers = array(); $type = $this->_getParam('type', null); $levels = $this->_getParam('levels', null); $init_id = $this->_getParam('init_id', null); $line1_id = $this->_getParam('line1_id', null); $call_type = $this->_getParam('call_type', null); $context = $this->_getParam('context', 'add'); $employeeids = $this->_getParam('employeeids'); $businessunit_id = $this->_getParam('businessunit_id', null); $department_id = $this->_getParam('department_id', null); $app_init_model = new Default_Model_Appraisalinit(); $managers = $app_init_model->getRepManagers_report($line1_id, $init_id, $employeeids, $businessunit_id, $department_id); if ($context == 'edit') { $emp_model = new Default_Model_Employee(); $line1_data = $emp_model->getEmp_from_summary($line1_id); $line_managers = $app_init_model->getLineManagers($init_id, $line1_id); $line_managers = array_filter($line_managers); } $this->view->levels = $levels; $this->view->managers = $managers; $this->view->init_id = $init_id; $this->view->context = $context; $this->view->line1_data = $line1_data; $this->view->line_managers = $line_managers; $this->view->line1_id = $line1_id; $this->view->call_type = $call_type; $this->render('displayreportmanagers'); }