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