Re: campo id
se a tabela possui chave primaria no modelo declare var $primary = nomeCampo; assim, será a chave primária, caso seja composta, utilize array var $primary = array(Campo1,Campo2); Em 5 de janeiro de 2012 16:14, Filippi Rizzi filippi.ri...@gmail.comescreveu: Olá! Trabalho com o cake a alguns anos, e sempre utilizei como pk das tabelas o id.. porem recebi uma modelagem de um bd no qual as tabelas não possuem id.. gostaria de saber se alguem trabalha assim utilizando o cake e ou ja tentou trabalhar assim.. Obrigado. -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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: Having PHP generate a PDF
use jaspter reports with PHP to generate document files 2012/1/3 euromark dereurom...@googlemail.com @roundrightfarm I dont think such a helper is part of the core, though :) On 3 Jan., 17:25, Yves S. Garret yoursurrogate...@gmail.com wrote: That sounds interesting, but will it work with my requirement of having the header and the title get copied over to the next page with the table? On Tue, Jan 3, 2012 at 11:22 AM, roundrightfarm roundrightf...@gmail.comwrote: I'm new to ckaephp so take my advice with a grain of salt... but, it looks like your trying to generate a spreadsheet type document. Cake has a csv helper to aid in this add var $helpers = array('Csv'); to your controller then you can $csv-addRow(); $csv-render(); On Jan 3, 7:45 am, Yves S. Garret yoursurrogate...@gmail.com wrote: Here is my problem. I would like to have PHP generate a PDF 8.5 x 11. This is the rough format of the PDF: http://bin.cakephp.org/view/2006656317 But here is the kicker, say that those columns that hold data are much longer, say they span 2 pages. On the 2nd page, I would like to repeat the Header, Title 1, Title 2 and Title 3. Can this be done dynamically and programmatically? Does anyone have an example or a source that demonstrates this? Sample code would be very welcome :-) . A point in the right direction would also be very appreciated. This example is not CakePHP specific, but I would like some input on how to do this. Any past experience that you would recommend? Can -- what I described -- be done in CakePHP? -- Our newest site for the community: CakePHP Video Tutorials http://tv.cakephp.org Check out the new CakePHP Questions sitehttp://ask.cakephp.organd 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 athttp://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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 access to $this-webroot controller's variable from a model?
use Helper::url('/') 2012/1/2 byqsri marco.rizze...@gmail.com Hi I would ask how can I access to $this-webroot controller's variable from a model? Many Thanks Marco -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 access to $this-webroot controller's variable from a model?
I use Cakephp 2.0 and the static method Helper::url('/') return the URL from WebRoot 2012/1/2 清水紘己 hiromi2...@gmail.com Laerte M. Rodrigues You meant Router::url(), right? It will return proper value through web, but not in cli at edge cases. Recommended way is manually to use Model::set() method or receive value via property, like $Post-webroot = $this-webroot(or Post::$webroot = ...). Because testing it is harder in cli test runner. 2012/1/2 Laerte M. Rodrigues laertemat...@gmail.com: use Helper::url('/') 2012/1/2 byqsri marco.rizze...@gmail.com Hi I would ask how can I access to $this-webroot controller's variable from a model? Many Thanks Marco -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 access to $this-webroot controller's variable from a model?
if they have the absolute path, use const WEBROOT_DIR 2012/1/2 Tilen Majerle tilen.maje...@gmail.com he is probably need absolute path for webroot, not browser :) -- Lep pozdrav, Tilen Majerle http://majerle.eu 2012/1/2 Laerte M. Rodrigues laertemat...@gmail.com I use Cakephp 2.0 and the static method Helper::url('/') return the URL from WebRoot 2012/1/2 清水紘己 hiromi2...@gmail.com Laerte M. Rodrigues You meant Router::url(), right? It will return proper value through web, but not in cli at edge cases. Recommended way is manually to use Model::set() method or receive value via property, like $Post-webroot = $this-webroot(or Post::$webroot = ...). Because testing it is harder in cli test runner. 2012/1/2 Laerte M. Rodrigues laertemat...@gmail.com: use Helper::url('/') 2012/1/2 byqsri marco.rizze...@gmail.com Hi I would ask how can I access to $this-webroot controller's variable from a model? Many Thanks Marco -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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: CAKE PHP Installation Problem
verify if the rewrite_module is enabled in your apache server 2012/1/1 Wanted cs.abdulwa...@gmail.com Believe me I have done Everything according to the tutorialsin my case its http://localhost/cakephp1.3/ and Everything is green in the end but when I goto http://localhost/cakephp1.3/posts it says The requested URL /cakephp1.3/posts was not found on this server. Please help me out , I am unable to resolve it , its almost a week. -- 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 -- Grato, Laerte Mateus Rodrigues Mestrando em informática (PUC Minas) -- 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