Tuesday, October 16, 2012

Re: Error to load a third Libs

I am using cake2.2

Em terça-feira, 16 de outubro de 2012 11h50min46s UTC-3, MaJerle.Eu escreveu:
your file is .class ??..and tell us which cake u use
--
Lep pozdrav, Tilen Majerle



2012/10/16 Lucas Simon Rodrigues Magalhaes <luca...@gmail.com>
Hiii, good morning!

I have a erro when I try load a third Lib in my controller.

The code:

App::uses('html2pdf/html2pdf.class', 'Lib'); 

App::import('Lib', 'html2pdf/html2pdf.class');
pr(App::paths());
try{
$pdf = new HTML2PDF('P','A4','fr');
$pdf->pdf->SetDisplayMode('fullpage');
$pdf->writeHTML($content);
$pdf->Output('test.pdf');
}
catch(HTML2PDF_exception $e){
die($e);
}

The error:

Fatal Error

Error: Class 'HTML2PDF' not found
Line: 196
Notice: If you want to customize this error message, create app\View\Errors\fatal_error.ctp


My folder:

Lucas Simon@LUCAS-PC app/Lib/html2pdf (master)
$ ls
_LGPL.txt       _lisez_moi.txt  examples            locale
_changelog.txt  _read_me.txt    html2pdf.class.php
_class          _tcpdf_5.0.002  html2pdf_v4.03

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake...@googlegroups.com.
To unsubscribe from this group, send email to cake-php+u...@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

--
Like Us on FaceBook https://www.facebook.com/CakePHP
Find us on Twitter http://twitter.com/CakePHP
 
---
You received this message because you are subscribed to the Google Groups "CakePHP" group.
To post to this group, send email to cake-php@googlegroups.com.
To unsubscribe from this group, send email to cake-php+unsubscribe@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php?hl=en.
 
 

No comments: