Re: making fpdf work in cakephp

2010-03-30 Thread butterlamb
I think I'm going to switch to tcpdf. According to an article in the Bakery (http://bakery.cakephp.org/articles/view/creating-pdf-files- with-cakephp-and-tcpdf), fpdf doesn't work well with 1.2. Thanks for all your help. On Mar 25, 6:51 pm, cricket wrote: > On Mar 25, 11:59 am, butterlamb wrote:

Re: making fpdf work in cakephp

2010-03-25 Thread cricket
On Mar 25, 11:59 am, butterlamb wrote: > Thanks! This seemed to work, but now I'm getting this error message, > instead of my index page: > > Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php, > line 127] > > FPDF error: Incorrect orientation: array > > Here's the line the error is

Re: making fpdf work in cakephp

2010-03-25 Thread butterlamb
Thanks! This seemed to work, but now I'm getting this error message, instead of my index page: Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php, line 127] FPDF error: Incorrect orientation: array Here's the line the error is citing: $orientation=strtolower($orientation);

Re: making fpdf work in cakephp

2010-03-24 Thread cricket
You're using the old syntax. Use App::import('Vendor', 'FPDF'); If that doesn't work, try: App::import('Vendor', 'FPDF', array('file' => 'fpdf/fpdf.php')); On Mar 24, 11:20 am, butterlamb wrote: > I've been trying to make fpdf work in CakePHP (http:// > bakery.cakephp.org/articles/view/pdf-hel

making fpdf work in cakephp

2010-03-24 Thread butterlamb
I've been trying to make fpdf work in CakePHP (http:// bakery.cakephp.org/articles/view/pdf-helper-using-fpdf) with no success. When I add the pdf helper to the helpers array in my controller, I get the following error message in my view: "Call to undefined function vendor() in...\views\helpers\fp