KoolReport's Forum

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

I am trying to get output by using codeigniter view #434

Open Bharani opened this topic on on Aug 29, 2018 - 1 comments

Bharani commented on Aug 29, 2018

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);
			
	}
KoolReport commented on Aug 31, 2018

As I discussed with you through Messenger, please use the Instant package to create widget outside of KoolReport view.

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

None