KoolReport's Forum

Official Support Area, Q&As, Discussions, Suggestions and Bug reports.
Forum's Guidelines

Help with integrating Koolreports with codeigniter #1995

Open Millie Majithia opened this topic on on Mar 25, 2021 - 2 comments

Millie Majithia commented on Mar 25, 2021

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.

Millie Majithia commented on Mar 25, 2021

Hi any update on this?

Sebastian Morales commented on Mar 26, 2021

Pls check our CodeIgniter package to facilitate KoolReport integration:

https://www.koolreport.com/docs/codeigniter/overview/

Let us know if there's any problem with rendering reports. Tks,

Build Your Excellent Data Report

Let KoolReport help you to make great reports. It's free & open-source released under MIT license.

Download KoolReport View demo
help needed

CodeIgniter