Re: CakePdf - How To Start?
For Compelete help: http://rapidsol.blogspot.com/2013/11/cakephp-email-with-pdf-attachment-and.html On Friday, August 3, 2012 10:03:11 AM UTC+5, elogic wrote: I have just downloaded and installed CakePdf - https://github.com/ceeram/CakePdfhttps://www.google.com/url?q=https%3A%2F%2Fgithub.com%2Fceeram%2FCakePdfsa=Dsntz=1usg=AFQjCNHl77PabxdojwxWZd4PWmC6fjTHEg I don't understand how to get a sample PDF running. Anything will do, i.e. hello world, once I get this going then I can look into generating things further. Thanks. -- 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+unsubscr...@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/groups/opt_out.
Re: CakePdf - How To Start?
Help me with the same On Friday, August 3, 2012 10:33:11 AM UTC+5:30, elogic wrote: I have just downloaded and installed CakePdf - https://github.com/ceeram/CakePdf I don't understand how to get a sample PDF running. Anything will do, i.e. hello world, once I get this going then I can look into generating things further. Thanks. -- 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+unsubscr...@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?hl=en. For more options, visit https://groups.google.com/groups/opt_out.
Re: CakePdf - How To Start?
Did anyone have any look here - trying to attached a PDF to a email but failing - do you have to actually create the file on the server or can you do something like the readme suggests ($pdf = $CakePdf-output();)?? On Tuesday, 4 September 2012 12:04:48 UTC+1, thosfelt wrote: I've only had luck downloading, tried setting download to false and giving it a path and filename, but that only displayed the file in the browser. On Sunday, September 2, 2012 4:52:21 PM UTC-4, elogic wrote: I'm not sure, I would expect it can be done however depending on the engine you are using, maybe ask directly on the github site. Did you manage to work out how to connect the pdf's into an email by any chance? I am struggling to work this out, I can only get the PDF to download at the moment. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I've only had luck downloading, tried setting download to false and giving it a path and filename, but that only displayed the file in the browser. On Sunday, September 2, 2012 4:52:21 PM UTC-4, elogic wrote: I'm not sure, I would expect it can be done however depending on the engine you are using, maybe ask directly on the github site. Did you manage to work out how to connect the pdf's into an email by any chance? I am struggling to work this out, I can only get the PDF to download at the moment. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I'm not sure, I would expect it can be done however depending on the engine you are using, maybe ask directly on the github site. Did you manage to work out how to connect the pdf's into an email by any chance? I am struggling to work this out, I can only get the PDF to download at the moment. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Thanks - I have everything working now. Only question I have is if there is any way to add a footer to the pdf pages? I tried the obvious footer = footer message in the $this-pdfConfig, but no luck. On Friday, August 3, 2012 1:03:11 AM UTC-4, elogic wrote: I have just downloaded and installed CakePdf - https://github.com/ceeram/CakePdf I don't understand how to get a sample PDF running. Anything will do, i.e. hello world, once I get this going then I can look into generating things further. Thanks. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Elogic - I'm having issues setting this up, can you post detailed instructions on setting CakePdf up? On Thursday, August 23, 2012 6:11:09 PM UTC-4, elogic wrote: Thanks, I updated both issues and now I am getting pdfs with both Tcpdf and Dompdf. I will look into the other one you mentioned. My next thing is the pages I am trying to generate as PDF's have google charts on them but they don't load. Is this something that is possible? https://developers.google.com/chart/ - Mostly the table, line and pie charts. Regards, Adam Symonds Elogic Media On Thu, Aug 23, 2012 at 11:36 PM, Ceeram c33...@gmail.com javascript:wrote: I fixed the notice: https://github.com/ceeram/CakePdf/commit/efb6f480d28676f95d1860dd95f71aa01da5a0a5 On Thursday, August 23, 2012 3:31:14 PM UTC+2, Ceeram wrote: The first error about missing method setExtensions() is because you are not using latest cake version, if you would look up the line where the error points to you would read this: https://github.com/ceeram/**CakePdf/blob/master/Config/**routes.php#L3https://github.com/ceeram/CakePdf/blob/master/Config/routes.php#L3 The dompdf error, i can not help with really, that is not caused by the CakePdf plugin code. Tcpdf also produces i bunch of notices, so added a line about that here: https://github.com/ceeram/**CakePdf/blob/master/Pdf/** Engine/TcpdfEngine.php#L23https://github.com/ceeram/CakePdf/blob/master/Pdf/Engine/TcpdfEngine.php#L23 You could try that with dompdf as well i guess. Wkhtmltopdf is the recommended engine, as it beats all other engines together, in both performance and correct rendering html. On Thursday, August 23, 2012 5:25:59 AM UTC+2, elogic wrote: I since have setup the routes.php line of Router::parseExtensions( 'pdf'); The error I am getting now is: *Notice* (8): Undefined variable: res [*APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php*, line *1413*] I assume this is a config setting? -- You received this message because you are subscribed to the Google Groups CakePHP group. To post to this group, send email to cake...@googlegroups.comjavascript: . To unsubscribe from this group, send email to cake-php+u...@googlegroups.com javascript:. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
The readme file on github as been updated and contains the information you'll need to get this setup. Make sure you use the latest version of code too. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Hi everyone, I have the problem that I get the following error message: Class 'TcpdfEngine' not found ...for every engine I try. Does anyone know where the problem could be? -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
The first error about missing method setExtensions() is because you are not using latest cake version, if you would look up the line where the error points to you would read this: https://github.com/ceeram/CakePdf/blob/master/Config/routes.php#L3 The dompdf error, i can not help with really, that is not caused by the CakePdf plugin code. Tcpdf also produces i bunch of notices, so added a line about that here: https://github.com/ceeram/CakePdf/blob/master/Pdf/Engine/TcpdfEngine.php#L23 You could try that with dompdf as well i guess. Wkhtmltopdf is the recommended engine, as it beats all other engines together, in both performance and correct rendering html. On Thursday, August 23, 2012 5:25:59 AM UTC+2, elogic wrote: I since have setup the routes.php line of Router::parseExtensions( 'pdf'); The error I am getting now is: *Notice* (8): Undefined variable: res [*APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php*, line *1413*] I assume this is a config setting? -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I fixed the notice: https://github.com/ceeram/CakePdf/commit/efb6f480d28676f95d1860dd95f71aa01da5a0a5 On Thursday, August 23, 2012 3:31:14 PM UTC+2, Ceeram wrote: The first error about missing method setExtensions() is because you are not using latest cake version, if you would look up the line where the error points to you would read this: https://github.com/ceeram/CakePdf/blob/master/Config/routes.php#L3 The dompdf error, i can not help with really, that is not caused by the CakePdf plugin code. Tcpdf also produces i bunch of notices, so added a line about that here: https://github.com/ceeram/CakePdf/blob/master/Pdf/Engine/TcpdfEngine.php#L23 You could try that with dompdf as well i guess. Wkhtmltopdf is the recommended engine, as it beats all other engines together, in both performance and correct rendering html. On Thursday, August 23, 2012 5:25:59 AM UTC+2, elogic wrote: I since have setup the routes.php line of Router::parseExtensions( 'pdf'); The error I am getting now is: *Notice* (8): Undefined variable: res [*APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php*, line *1413*] I assume this is a config setting? -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Thanks, I updated both issues and now I am getting pdfs with both Tcpdf and Dompdf. I will look into the other one you mentioned. My next thing is the pages I am trying to generate as PDF's have google charts on them but they don't load. Is this something that is possible? https://developers.google.com/chart/ - Mostly the table, line and pie charts. Regards, Adam Symonds Elogic Media On Thu, Aug 23, 2012 at 11:36 PM, Ceeram c33...@gmail.com wrote: I fixed the notice: https://github.com/ceeram/CakePdf/commit/efb6f480d28676f95d1860dd95f71aa01da5a0a5 On Thursday, August 23, 2012 3:31:14 PM UTC+2, Ceeram wrote: The first error about missing method setExtensions() is because you are not using latest cake version, if you would look up the line where the error points to you would read this: https://github.com/ceeram/**CakePdf/blob/master/Config/**routes.php#L3https://github.com/ceeram/CakePdf/blob/master/Config/routes.php#L3 The dompdf error, i can not help with really, that is not caused by the CakePdf plugin code. Tcpdf also produces i bunch of notices, so added a line about that here: https://github.com/ceeram/**CakePdf/blob/master/Pdf/** Engine/TcpdfEngine.php#L23https://github.com/ceeram/CakePdf/blob/master/Pdf/Engine/TcpdfEngine.php#L23 You could try that with dompdf as well i guess. Wkhtmltopdf is the recommended engine, as it beats all other engines together, in both performance and correct rendering html. On Thursday, August 23, 2012 5:25:59 AM UTC+2, elogic wrote: I since have setup the routes.php line of Router::parseExtensions( 'pdf'); The error I am getting now is: *Notice* (8): Undefined variable: res [*APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php*, line *1413*] I assume this is a config setting? -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I think the issue is I have been trying parts from both of the CakePdf functions out there. I am going to try this from scratch on a new project and see what happens. Thanks -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
On a brand new app I have uploaded the plugin and I set the bootstrap config line to: CakePlugin::load('CakePdf', array('bootstrap' = true, 'routes' = true)); Reloading the page and I get this error: *Fatal error*: Call to undefined method Router::setExtensions() in * /home/village/public_html/app/Plugin/CakePdf/Config/routes.php* on line *7 * -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I changed CakePlugin::load('CakePdf', array('bootstrap' = true, 'routes' = true)); to CakePlugin::load('CakePdf', array('bootstrap' = true)); and the error is gone however I still am not getting a PDF. I forgot to mention I have created the layout in /app/View/Layout/pdf/default.ctp and am trying to go to /reports/snapshots.pdf where I get this error now: *Error: * The action *snapshots.pdf* is not defined in controller * ReportsController* I think I am still missing the configuration, what is a sample of this so I can get it setup properly. ** *Thankyou * -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I since have setup the routes.php line of Router::parseExtensions( 'pdf'); The error I am getting now is: *Notice* (8): Undefined variable: res [*APP/Plugin/CakePdf/Vendor/dompdf/lib/class.pdf.php*, line *1413*] I assume this is a config setting? -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
You need increase PHP memory limit for this method. You can get the current memory limit with ini_get() function, for example: print_r(ini_get('memory_limit')); After you can increment the memory_limit value with ini_set() function, for example: ini_set('memory_limit', '128M'); The second parameter must be greater than that obtained with the function ini_get(). -- Murgan, Alexis Germán Desarrollador Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar MSN: ger...@murgan.com.ar Móvil: +5493424663813 -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Line 994 tries to throw missingview exception, so your setup is still incorrect On Thursday, August 16, 2012 12:49:08 PM UTC+2, Mancho Murgan wrote: You need increase PHP memory limit for this method. You can get the current memory limit with ini_get() function, for example: print_r(ini_get('memory_limit')); After you can increment the memory_limit value with ini_set() function, for example: ini_set('memory_limit', '128M'); The second parameter must be greater than that obtained with the function ini_get(). -- Murgan, Alexis Germán Desarrollador Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar javascript: MSN: ger...@murgan.com.ar javascript: Móvil: +5493424663813 -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
cant edit my previous post, so here is another one: why do you have /pdf/ in your url? just browse to the exact same url and add .pdf extension, thats it so http://localhost/forms/view/1.pdf create app/View/Forms/pdf/view.ctp create app/Layouts/pdf/default.ctp On Thursday, August 16, 2012 1:01:37 PM UTC+2, Ceeram wrote: Line 994 tries to throw missingview exception, so your setup is still incorrect On Thursday, August 16, 2012 12:49:08 PM UTC+2, Mancho Murgan wrote: You need increase PHP memory limit for this method. You can get the current memory limit with ini_get() function, for example: print_r(ini_get('memory_limit')); After you can increment the memory_limit value with ini_set() function, for example: ini_set('memory_limit', '128M'); The second parameter must be greater than that obtained with the function ini_get(). -- Murgan, Alexis Germán Desarrollador Diseñador Web: german.murgan.com.ar Email: ger...@murgan.com.ar MSN: ger...@murgan.com.ar Móvil: +5493424663813 -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Thanks for your help so far, I have updated the config as you showed me and now I go to: */admin/forms/pdf_view/1.pdf *and I get the following error:* Fatal error*: Allowed memory size of 134217728 bytes exhausted (tried to allocate 76 bytes) in */home/beanclai/public_html/lib/Cake/View/View.php*on line *994 *if I go to /admin/forms/pdf_view/1 I will get the html content I am trying to show as a PDF* *Any suggestions? Thanks* * -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Sorry I meant /pdf/forms/view/1/ or /pdf/forms/view/1.pdf as paths. The same error applies as above. Bootstrap looks like this now: (I've tried DomPdf and Tcpdf, same error on both) CakePlugin::load('CakePdf', array('bootstrap' = true, 'routes' = true)); Configure::write('Pdf', array( 'engine' = 'DomPdf' )); * * -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Btw i just noticed there is anotyehr CakePdf plugin that does use the prefix thing, but works in completely different way I got here, as someone opened a ticket on my repo, can you confirm which plugin you are using? On Tuesday, August 14, 2012 12:37:42 AM UTC+2, Ceeram wrote: Hi guys, im the maintainer of the plugin. Lets nail this, so i know what to add to the docs. For what i know everything is in the readme, but perhaps i missed a step. You can use CakePdf in 2 ways: 1. Render like normal html view in the browser but as pdf (or forced download), use the same url and add .pdf extension. You can use the same controller action, view() in this example, just use other view.ctp (in pdf subdir) and layout. If you decide for whatever reason to create a separate pdf_view() action, you should also browse to corresponding url: users/pdf_view/1.pdf and create the pdf_view.ctp in the pdf subdir. 2. Or use directly by creating CakePdf instance to get the pdf string returned to attach to an email for instance. Seems you just didnt add the .pdf url extension, also the engine value should exactly match the classname of the engine without Engine suffix, so for tcpdf that should be: 'engine' = 'Tcpdf' The 'prefix' is not a config option btw. I know people using this plugin in production sites, and the plugin has plenty of tests, if i missed something id be more then happy to add to/update the readme and/or tests. Its just not clear to me what is missing/incorrect in the readme. From On Monday, August 13, 2012 11:40:47 PM UTC+2, elogic wrote: Thanks however Ideally I really want to get CakePdf going rather then using another process. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Hi, You can use the below link to create a pdf in cakephp.It is easy to implement. http://bakery.cakephp.org/articles/kalileo/2010/06/08/creating-pdf-files-with-cakephp-and-tcpdf On Thursday, August 9, 2012 6:33:49 PM UTC+5:30, DerekGardiner wrote: I seem to be following in elogic's foot steps and battling with the same issues. Does anyone know of a better tutorial to use than the readme file on GITHUB? Desperately trying to get this plugin to produce a PDF. On Friday, 3 August 2012 07:03:11 UTC+2, elogic wrote: I have just downloaded and installed CakePdf - https://github.com/ceeram/CakePdf I don't understand how to get a sample PDF running. Anything will do, i.e. hello world, once I get this going then I can look into generating things further. Thanks. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Thanks however Ideally I really want to get CakePdf going rather then using another process. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
Hi guys, im the maintainer of the plugin. Lets nail this, so i know what to add to the docs. For what i know everything is in the readme, but perhaps i missed a step. You can use CakePdf in 2 ways: 1. Render like normal html view in the browser but as pdf (or forced download), use the same url and add .pdf extension. You can use the same controller action, view() in this example, just use other view.ctp (in pdf subdir) and layout. If you decide for whatever reason to create a separate pdf_view() action, you should also browse to corresponding url: users/pdf_view/1.pdf and create the pdf_view.ctp in the pdf subdir. 2. Or use directly by creating CakePdf instance to get the pdf string returned to attach to an email for instance. Seems you just didnt add the .pdf url extension, also the engine value should exactly match the classname of the engine without Engine suffix, so for tcpdf that should be: 'engine' = 'Tcpdf' The 'prefix' is not a config option btw. I know people using this plugin in production sites, and the plugin has plenty of tests, if i missed something id be more then happy to add to/update the readme and/or tests. Its just not clear to me what is missing/incorrect in the readme. From On Monday, August 13, 2012 11:40:47 PM UTC+2, elogic wrote: Thanks however Ideally I really want to get CakePdf going rather then using another process. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
I seem to be following in elogic's foot steps and battling with the same issues. Does anyone know of a better tutorial to use than the readme file on GITHUB? Desperately trying to get this plugin to produce a PDF. On Friday, 3 August 2012 07:03:11 UTC+2, elogic wrote: I have just downloaded and installed CakePdf - https://github.com/ceeram/CakePdf I don't understand how to get a sample PDF running. Anything will do, i.e. hello world, once I get this going then I can look into generating things further. Thanks. -- 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+unsubscr...@googlegroups.com. Visit this group at http://groups.google.com/group/cake-php?hl=en-US.
Re: CakePdf - How To Start?
This is what I have done so far: 1. CakePdf is in my Plugin folder. 2. bootstrap.php has at the bottom: /* LOAD CakePdf PLUGIN */ CakePlugin::load('CakePdf', array('bootstrap' = true, 'routes' = true)); Configure::write('Pdf', array( 'prefix' = 'pdf', 'engine' = 'tcpdf' )); 3. FormsController.php has this function public function pdf_view($id = null) { $this-Form-id = $id; if (!$this-Form-exists()) { throw new NotFoundException(__('Invalid form')); } $this-set('form', $this-Form-read(null, $id)); } 4. I have setup a template file at: /app/View/Layouts/pdf/default.ctp 5. I have setup the view file at: /app/View/Forms/pdf/view.ctp I am getting this error (please note I also tried the view.ctp as pdf_view.ctp in the /app/View/Forms/ folder but it just rendered the html to the page without the error, still no pdf) *Error: * The view for *FormsController::**pdf_view()* was not found. *Error: * Confirm you have created the file: /home/beanclai/public_html/app/View/Forms/pdf_view.ctp Any idea where I am going wrong? Thanks -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions site http://ask.cakephp.org and help others with their CakePHP related questions. To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php