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?
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?
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: url=controller/function appears now in my url address bar
Thanks, I did miss it. This did the trick. Regards, Adam Symonds Elogic Media On Wed, Jul 4, 2012 at 5:24 AM, lowpass zijn.digi...@gmail.com wrote: On Tue, Jul 3, 2012 at 12:46 AM, elogic asymo...@elogicmedia.com.au wrote: I checked this all out but I couldn't see anything that was wrong. Perhaps you missed it: RewriteRule ^(.*)$ index.php?url=$1 [QSA,L] vs RewriteRule ^(.*)$ index.php [QSA,L] It's the one in app/webroot that you need to change. That, or your vhost config if you are able to put your rewrite rules there. -- 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 -- 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
Re: how to generate this sql
Thanks, This is what I ended up doing in my records controller function but I get the following error:* Column not found: 1054 Unknown column 'count_name' in 'having clause' * $this-Timesheet-virtualFields = array( 'count_name' = 'COUNT(Timesheet.id)' ); $doubles = $this-Timesheet-find( 'all', array( 'fields' = array( 'Timesheet.user_id', 'Timesheet.date', 'count_name' ), 'group' = 'Timesheet.user_id, Timesheet.date HAVING count_name 1', 'order' = array( 'count_name' ) ) ); $this-set('doubles', $doubles); - Thanks Adam On Wed, Jun 20, 2012 at 1:16 AM, dogmatic69 dogmati...@gmail.com wrote: Cake does not support HAVING but you can put it in the group as a string. Something like the following: $this-Timesheet-virtualFields = array( 'count_name' = 'COUNT(id)' ); $this-Timesheet-find( 'all', array( 'fields' = array( 'Timesheet.user_id', 'Timesheet.date', 'count_name' ), 'group' = 'Timesheet.user_id, Timesheet.date HAVING count_name 1', 'order' = array( 'count_name' ) ) ); On Tuesday, 19 June 2012 03:18:58 UTC+1, elogic wrote: Hi All, How do I go about generating the following SQL line using cakePHP from the timesheets controller? SELECT user_id, date, count(id) as count_name FROM `timesheets`GROUP BY user_id, date HAVING count_name 1 ORDER BY count_name; Basically it is just checking for double up records mathching the date and user_id fields. 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 -- 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
Re: how to generate this sql
Thanks, worked perfectly. On Wed, Jun 20, 2012 at 9:17 AM, dogmatic69 dogmati...@gmail.com wrote: Sorry Cake creates the fields as Model__filed so it should be 'group' = 'Timesheet.user_id, Timesheet.date HAVING Timesheet__count_name 1', On Tuesday, 19 June 2012 23:52:43 UTC+1, elogic wrote: Thanks, This is what I ended up doing in my records controller function but I get the following error:* Column not found: 1054 Unknown column 'count_name' in 'having clause' * $this-Timesheet-**virtualFields = array( 'count_name' = 'COUNT(Timesheet.id)' ); $doubles = $this-Timesheet-find( 'all', array( 'fields' = array( 'Timesheet.user_id', 'Timesheet.date', 'count_name' ), 'group' = 'Timesheet.user_id, Timesheet.date HAVING count_name 1', 'order' = array( 'count_name' ) ) ); $this-set('doubles', $doubles); - Thanks Adam On Wed, Jun 20, 2012 at 1:16 AM, dogmatic69 wrote: Cake does not support HAVING but you can put it in the group as a string. Something like the following: $this-Timesheet-**virtualFields = array( 'count_name' = 'COUNT(id)' ); $this-Timesheet-find( 'all', array( 'fields' = array( 'Timesheet.user_id', 'Timesheet.date', 'count_name' ), 'group' = 'Timesheet.user_id, Timesheet.date HAVING count_name 1', 'order' = array( 'count_name' ) ) ); On Tuesday, 19 June 2012 03:18:58 UTC+1, elogic wrote: Hi All, How do I go about generating the following SQL line using cakePHP from the timesheets controller? SELECT user_id, date, count(id) as count_name FROM `timesheets`GROUP BY user_id, date HAVING count_name 1 ORDER BY count_name; Basically it is just checking for double up records mathching the date and user_id fields. 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+unsubscribe@**googlegroups.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/**group/cake-phphttp://groups.google.com/group/cake-php -- 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 -- 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