I am trying to get output by using codeigniter view $this->load->view() instead of koolreport (page.view.php)
I am using below code but getting an error Undefined index: __ACTIVE_KOOLREPORT__
Controller
public function get_payment_type_by_date($type = NULL)
{
## Sending data(dbname, base_url) to payment class
$report = new Payment(array(
"dbname" => "database1",
"from"=>$this->input->post('from'),
"to"=>$this->input->post('to'),
'base_url' => base_url()
));
$report->run();
## Sending report data to page using codeigniter view functionality
$data = array(
'title' => 'Payment Report',
'page_name' => 'reports/payment_report',
'report'=> $report
);
$this->load->view('index', $data);
}