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...
function FPDF($w=null, $orientation='P',$unit='mm',$format='A4')
{

}

So you need to change the code in fpdf.php, the core of fpdf..and in
your helper..

I don't understand why cakephp pass this array...and where this array
comes...

You can use the fpdf without 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 using fpdf, 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
> FPDF error: Incorrect orientation: array
--~--~---------~--~----~------------~-------~--~----~
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