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');

}
#2

[eluser]zombica[/eluser]
Hey Guys does PDF generation plugin support for CI given by Derek Allard...
Does not support tables,tr,td. Do i have to use only the paragraph, headings, li or some thing like this.
#3

[eluser]Thorpe Obazee[/eluser]
[quote author="zombica" date="1246271919"]Hey Guys does PDF generation plugin support for CI given by Derek Allard...
Does not support tables,tr,td. Do i have to use only the paragraph, headings, li or some thing like this.[/quote]

Please no double posting...http://ellislab.com/forums/viewthread/121520/




Theme © iAndrew 2016 - Forum software by © MyBB