Hi I am trying to integrate koolreports to a codeigniter program. Can you please assist?
So I have a file called backend.php that is a controller for the backend and I have this function in the controller to point to koolreports:
public function changefields1(){
require APPPATH."reports/inputs/millietest/Report.php";
$this->load->model('providers_model');
$this->load->model('secretaries_model');
$this->load->model('admins_model');
$this->load->model('services_model');
$this->load->model('settings_model');
$this->load->model('user_model');
$this->load->library('session');
$view['base_url'] = $this->config->item('base_url');
$view['user_display_name'] = $this->user_model->get_user_display_name($this->session->userdata('user_id'));
$view['active_menu'] = PRIV_USERS;
$view['company_name'] = $this->settings_model->get_setting('company_name');
$view['date_format'] = $this->settings_model->get_setting('date_format');
$view['time_format'] = $this->settings_model->get_setting('time_format');
$view['admins'] = $this->admins_model->get_batch();
$view['providers'] = $this->providers_model->get_batch();
$view['secretaries'] = $this->secretaries_model->get_batch();
$view['services'] = $this->services_model->get_batch();
$view['working_plan'] = $this->settings_model->get_setting('company_working_plan');
$this->set_user_data($view);
$report = new Report;
$report->run()->render();
}
Then I have koolreports in libraries, reports under applications and need help with having it load the actual appointments as I have inputs. (you input in the date and press load and it loads table. Please help me out.