Tuesday, April 21, 2015

Getting started ... help!

I am trying to use cakepdf to create a fairly large pdf on the fly..

I had a few set up problems, but they seem to be okay now.

However, when I to to generate a pdf all I end up with (after a fairly long delay) is a completely blank page (even source is empty).  SO I must be doing something wrong.

I feel that I don't really understand the following fully:


view/layout/pdf/default.ctp - what is the bare minimum I have to put in this file?  I know that if it is not present, then you get the missing default.ctp error.

CONFIGURATION... okay, this is where it becomes clear that I am a naive user.  There are two examples of code in the configuration section, but I am not clear whether a) I need both or just one, and b) WHERE do these go, particularly the Configure::write bit (I think the second bit is clearly in the appropriate controller for the model you are using).

These are the things that I am not sure about, but if anyone knows why I might be getting a completely blank pdf for reasons other than these, I would be grateful for any advice.

Thanks

Paul

--
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 unsubscribe from this group and stop receiving emails from it, send an email to cake-php+unsubscribe@googlegroups.com.
To post to this group, send email to cake-php@googlegroups.com.
Visit this group at http://groups.google.com/group/cake-php.
For more options, visit https://groups.google.com/d/optout.

No comments: