I'll tune up the article, thanks for the feedback.  I have a feeling I
always type vendors then get an error and smack myself in the head and
then remove the 's' ;)


On 2/12/07, jinhr <[EMAIL PROTECTED]> wrote:
>
> Sam, I eventually makes your sample codes runs according to  http://
> bakery.cakephp.org/articles/view/225
> Thanks!! But I have to make following changes on your codes before it
> runs, maybe because that CakePHP keeps changing.
>
> file "views/helpers/fpdf.php"
> ====================
> 1. "vendors(...);" is wrong, should be "vendor(...)" without "s".
> 2. add following additional var:
>
>     function fpdfHelper extends FPDF(){
>         var $helpers = array(); //I guess it is mandatory for latest
> CakePHP
>     }
> 3.change default value in function fpdfOutput to be "D" instead of
> 's', so that:
>     function fpdfOutput ($name = 'page.pdf', $destination = 'D')
>    I have tried all options, only this works stable both in IE and
> FireFox. Otherwise, there are chances showing messy or blank page. -_-
>
> file "views/layouts/pdf.ctp" (I use *.ctp instead of *.thtml")
> ==============================================
> //don't need this header output, because "vendors/fpdf/fpdf.php" has
> done this line
> //header("Content-type: application/pdf");
>
>
> Accordingly, I use "$fpdf->fpdfOutput()" instead of "echo $fpdf-
> >fpdfOutput();"
>
> Anyway, your codes help me a lot. Thanks. I will keep playing with
> your extending codes.
>
> On 1月17日, 下午12时42分, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> > you might also take a gander at the google cache for the old 
> > wikihttp://72.14.253.104/search?q=cache:B-P_vGNWzN8J:wiki.cakephp.org/tut...
> >
> > I send an email to the foundation offering to bring this up to date
> > and to the bakery, since I'm going to start to use it again soon
>
> On 1月17日, 下午12时42分, "Samuel DeVore" <[EMAIL PROTECTED]> wrote:
> > you might also take a gander at the google cache for the old 
> > wikihttp://72.14.253.104/search?q=cache:B-P_vGNWzN8J:wiki.cakephp.org/tut...
> >
> > I send an email to the foundation offering to bring this up to date
> > and to the bakery, since I'm going to start to use it again soon
> >
> > Sam D
> >
> > On 1/17/07, jinhr <[EMAIL PROTECTED]> wrote:
> >
> >
> >
> > > Thank for quick prompt, Chris. Your solution for swf really helps me to
> > > think of the solution.
> > > I may scratch a similiar way forFPDF.
> >
> > > BTW, I wonder whether it be better to define afpdfHelper rather than
> > > do in Controller?
> >
> > > Anyway, I ga to whip now....
> >
> > --
> > ==
> > S. DeVore
> > (the old fart) the advice is free, the lack of crankiness will cost you
>
>
> >
>


-- 
==
S. DeVore
(the old fart) the advice is free, the lack of crankiness will cost you

- its a fine line between a real question and an idiot

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" 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