Alessio
Thank you for the tip of adding a var in the FPDF constructor, at
least I am getting some pdfs from cakephp 1.2 and fpdf. My active
application is still running on version 1.1, I think its still worth
trying things out on 1.2 when you have time. I have the ajax parts
working well in both versions, I am optimistic after some time ver 1.2
will be ok
Thank you very much.

On Jul 1, 9:49 am, Alessio <[EMAIL PROTECTED]> wrote:
> in the 1.2 cakephp pass to the contructor an array...I dont know the
> reasons...
> I solved so...
> Add a var before the other arguments...
> functionFPDF($w=null, $orientation='P',$unit='mm',$format='A4')
> {
>
> }
>
> So you need to change the code infpdf.php, the core offpdf..and in
> your helper..
>
> I don't understand why cakephp pass this array...and where this array
> comes...
>
> You can use thefpdfwithout helper...
> or you can use the helper...but the class is called two times...and
> this is not good for performance...
>
> if you use the helper...the example for 1.1 don't work...
> I was able to make work only making the output in the view directly...
> passing the buffer in a string to the layout pdf doesn't work...
> I wait someone explain this behaviour in cakephp 1.2...
> I dont understand if new version are better or not...
>
> Really i am thinking to return 1.1...
> The performance are very worst in 1.2 , many errors often about cache
> and others...and my is a simple app the show some vars...
>
> I think that 1.2 is very hard to become stable...
>
> joselee ha scritto:
>
>
>
> > I have a cakephp 1.1 where i can generate pdf usingfpdf, I am
> > currently shifiting the application to cakephp 1.2 I get
> > a Notice and an error
>
> > Notice (8): Array to string conversion [APP\vendors\fpdf\fpdf.php,
> > line 148]
>
> > Code | Context
> > $orientation       =       array()
> > $unit      =       "mm"
> > $format    =       array(
> >    595.28,
> >    841.89
> > )
> > strtolower - [internal], line ??
> >FPDF::FPDF() - APP\vendors\fpdf\fpdf.php, line 148
> > View::_loadHelpers() - CORE\cake\libs\view\view.php, line 727
> > View::_render() - CORE\cake\libs\view\view.php, line 621
> > View::render() - CORE\cake\libs\view\view.php, line 368
> > Controller::render() - CORE\cake\libs\controller\controller.php, line
> > 732
> > Dispatcher::_invoke() - CORE\cake\dispatcher.php, line 265
> > Dispatcher::dispatch() - CORE\cake\dispatcher.php, line 233
> > [main] - APP\webroot\index.php, line 84
> >FPDFerror: Incorrect orientation: array- Hide quoted text -
>
> - Show quoted text -
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"CakePHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to