public function _display_custom_report() { //get model $reportModel = new ReportModel(); //get report $this->report = $reportModel->getCustomReports($this->app->input->get('id')); $this->report_data = $reportModel->getCustomReportData($this->app->input->get('id')); $state = $reportModel->getState(); //info for dropdowns $deal_amounts = DealHelper::getAmounts(); $deal_sources = DealHelper::getSources(); $deal_stages = DealHelper::getSourceStages(); $deal_statuses = DealHelper::getStatuses(); $deal_close_dates = DealHelper::getClosing(); $modified_dates = DealHelper::getModified(); $custom_report_header = ViewHelper::getView('reports', 'custom_report_header', 'phtml', array('report_data' => $this->report_data, 'report' => $this->report, 'state' => $state)); $custom_report_list = ViewHelper::getView('reports', 'custom_report_filter', 'phtml', array('report_data' => $this->report_data, 'report' => $this->report, 'state' => $state)); $custom_report_footer = ViewHelper::getView('reports', 'custom_report_footer', 'phtml'); $custom_report_header->deal_amounts = $deal_amounts; $custom_report_header->deal_sources = $deal_sources; $custom_report_header->deal_stages = $deal_stages; $custom_report_header->deal_statuses = $deal_statuses; $custom_report_header->deal_close_dates = $deal_close_dates; $custom_report_header->modified_dates = $modified_dates; $custom_report_header->created_dates = DateHelper::getCreatedDates(); $custom_report_header->team_names = DropdownHelper::getTeamNames(); $custom_report_header->user_names = DropdownHelper::getUserNames(); $custom_report_header->state = $state; //assign refs to view $this->custom_report_header = $custom_report_header; $this->custom_report_list = $custom_report_list; $this->custom_report_footer = $custom_report_footer; $this->state = $state; }