예제 #1
0
파일: home.php 프로젝트: gayathma/feedbox
 public function index()
 {
     $questionnaire_service = new Questionnaire_service();
     $settings_service = new Settings_service();
     $locations_service = new Locations_service();
     $setting = $settings_service->get_settings_by_slug('site_url');
     $data['languages'] = $this->config->item('LANGUAGES');
     $data['locations'] = $locations_service->get_locations();
     $data['questionnaires'] = $questionnaire_service->get_questionnaires($this->session->userdata('USER_LOCATION'));
     $data['domain_url'] = $setting->value;
     $partials = array('content' => 'dashboard/dashboard_view');
     //load the view
     $this->template->load('template/main_template', $partials, $data);
     //load teh template
 }
예제 #2
0
 public function feedback_report()
 {
     $questionnaire_service = new Questionnaire_service();
     $location_id = $this->session->userdata('USER_LOCATION');
     $data['questionnaires'] = $questionnaire_service->get_questionnaires($location_id);
     $partials = array('content' => 'reports_other/feedback_monthly_report');
     //load the view
     $this->template->load('template/main_template', $partials, $data);
     //load teh template
 }