Welcome Guest, Not a member yet? Register   Sign In
Problem in generating pdf through plugin....
#1

[eluser]zombica[/eluser]
Hey Guys I am generating PDF through plugin and i got the following issue.

In my controller function i have passed my sql data to view file and stored it in $html variable
like this : $html = $this->load->view('pdf', $data, true);

in the next line i have called the function :
pdf_create($html, 'myfile');

but a strange issue is coming over that it loads my view file and displays all sql data but it doesn't comes into the pdf_create() function.

Os something i am missing.

Here is my controller function......

function pdf($cid)
{
$this->load->plugin('to_pdf');
$this->load->helper('typography');

$data['pageTitle'] = 'Case Detail';

$caseInfo = $this->casemodel->get_single_case($cid);
$data['singlecaseView'] = $this->casemodel->get_single_case($cid);
$data['row'] = $this->casemodel->get_single_case($cid);

$html = $this->load->view('pdf', $data, true);
pdf_create($html, 'myfile');

}


Messages In This Thread
Problem in generating pdf through plugin.... - by El Forum - 06-28-2009, 11:21 PM
Problem in generating pdf through plugin.... - by El Forum - 06-28-2009, 11:38 PM
Problem in generating pdf through plugin.... - by El Forum - 06-29-2009, 12:27 AM



Theme © iAndrew 2016 - Forum software by © MyBB