Re: Auto-fill Date Values In Form
Thanks Cricket, I tried the lot, debugging $this-data as well, but even when it wasn't selecting the date from $this-data the form would still save correctly - so the field had to have been correct. Oh well, hopefully it's never an issue again. It's only a few more lines of code than I would have liked. Adam Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Job opening; Experienced CakePHP developer
The last Dutch CakePHP borrel was at the office of Affiliate4You and now we are looking for an experienced CakePHP developer in Utrecht, NL. Are you living in The Netherlands check the Cake-Toppings.com blog for more information: http://is.gd/gM3ka (dutch only) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Image Upload, webroot path?
Hi there, I got a little issue loading up an image. All the validation works just fine but when it comes to moving things around something happens to fail. I use this very simple code to move the uploaded temp file: $filePath = WEBROOT_DIR . DS . 'product_img/'.$this-data['Product'] ['img']['name']; move_uploaded_file($this-data['Product']['img']['tmp_name'], $filePath); I have a product_img folder within my webroot folder and its permissions are set to 777. However Cake throws the following errors: Warning (2): move_uploaded_file(webroot/product_img/testbild2.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory [APP/controllers/products_controller.php, line 49] Code | Context Warning (2): move_uploaded_file() [function.move-uploaded-file]: Unable to move '/is/htdocs/user_tmp/web44/phpqKQhWD' to 'webroot/ product_img/testbild2.jpg' [APP/controllers/products_controller.php, line 49] I'm quite sure it's a problem with my filepath but I tried a lot and nothing worked here. I hope you guys will bail me out again. Thanks in advance! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Image Upload, webroot path?
On Sat, Nov 6, 2010 at 11:45 AM, Raphi panicr...@t-online.de wrote: Hi there, I got a little issue loading up an image. All the validation works just fine but when it comes to moving things around something happens to fail. I use this very simple code to move the uploaded temp file: $filePath = WEBROOT_DIR . DS . 'product_img/'.$this-data['Product'] ['img']['name']; move_uploaded_file($this-data['Product']['img']['tmp_name'], $filePath); I have a product_img folder within my webroot folder and its permissions are set to 777. However Cake throws the following errors: Warning (2): move_uploaded_file(webroot/product_img/testbild2.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory [APP/controllers/products_controller.php, line 49] Code | Context Warning (2): move_uploaded_file() [function.move-uploaded-file]: Unable to move '/is/htdocs/user_tmp/web44/phpqKQhWD' to 'webroot/ product_img/testbild2.jpg' [APP/controllers/products_controller.php, line 49] I'm quite sure it's a problem with my filepath but I tried a lot and nothing worked here. I hope you guys will bail me out again. Look closer at the error msg. WEBROOT_DIR is just that--the name of the webroot dir. You want to use WWW_ROOT. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Mistaken render when debug is set to 0 (all ok if I re.set on 2)
I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, same problem. For bad render I mean, in this case, that from the entire HTML code I just get the 1% of total content. No html tag, no body, no head shown, nothin just 4 lines of code immediatly after the original body. If I set debug to 1 or 2 pages are rendered perfectly without error and warning. Ideas? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)
i'm sure, that you made changes in cake directory...here is maybe problem!! -- Tilen Majerle http://majerle.eu 2010/11/6 Mariano C. mariano.calan...@gmail.com I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, same problem. For bad render I mean, in this case, that from the entire HTML code I just get the 1% of total content. No html tag, no body, no head shown, nothin just 4 lines of code immediatly after the original body. If I set debug to 1 or 2 pages are rendered perfectly without error and warning. Ideas? Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)
What type of changes could cause these problem? Why only one controller? On 6 Nov, 19:11, Tilen Majerle tilen.maje...@gmail.com wrote: i'm sure, that you made changes in cake directory...here is maybe problem!! -- Tilen Majerlehttp://majerle.eu 2010/11/6 Mariano C. mariano.calan...@gmail.com I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, same problem. For bad render I mean, in this case, that from the entire HTML code I just get the 1% of total content. No html tag, no body, no head shown, nothin just 4 lines of code immediatly after the original body. If I set debug to 1 or 2 pages are rendered perfectly without error and warning. Ideas? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)
hmmm.post controller code here? -- Tilen Majerle http://majerle.eu 2010/11/6 Mariano C. mariano.calan...@gmail.com What type of changes could cause these problem? Why only one controller? On 6 Nov, 19:11, Tilen Majerle tilen.maje...@gmail.com wrote: i'm sure, that you made changes in cake directory...here is maybe problem!! -- Tilen Majerlehttp://majerle.eu 2010/11/6 Mariano C. mariano.calan...@gmail.com I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, same problem. For bad render I mean, in this case, that from the entire HTML code I just get the 1% of total content. No html tag, no body, no head shown, nothin just 4 lines of code immediatly after the original body. If I set debug to 1 or 2 pages are rendered perfectly without error and warning. Ideas? Check out the new CakePHP Questions sitehttp://cakeqs.organd help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.com cake-php%2bunsubscr...@googlegroups.comcake-php%252bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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.comcake-php%2bunsubscr...@googlegroups.comFor more options, visit this group at http://groups.google.com/group/cake-php?hl=en Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Mistaken render when debug is set to 0 (all ok if I re.set on 2)
On Sat, Nov 6, 2010 at 2:08 PM, Mariano C. mariano.calan...@gmail.com wrote: I've always developed my application with debug set to 2, now I've turned it to 0 and start to try it on the same machine but now all actions of a specific controller are rendered in a wrong way. Only one controller seems to gave me this error. I've tried to restart server, open/close browser, same problem. For bad render I mean, in this case, that from the entire HTML code I just get the 1% of total content. No html tag, no body, no head shown, nothin just 4 lines of code immediatly after the original body. If I set debug to 1 or 2 pages are rendered perfectly without error and warning. What do you mean by 4 lines of code? Also, make sure you don't have any calls to Debugger class (in controller, model, or view). If debug is set to 0 one can't call it statically, ie. Debugger::log(). Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: CakePHP Parameter Manipulation
Yeah, that wasn't very clear. I was focusing on the group management part. Ah right, can see where u were going with that, although I also use groups (UserGroup model) without ACL too :) Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Named parameters, forms and redirects
Nah, deffo not doing anything wrong, just getting used to the framework :) Although I do advise spending time trying to do everything to the best of your ability first time around. You will reuse a lot of CRUD code throughout other models/controllers/views. With my first CakePHP project I had over 50 models and by the time I had finished I had probably bettered my early model/contoller/views twice. Nothing worse than having one model expecting variables in a different way to another and possibly behaving different across one app. HTH, Paul Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Image Upload, webroot path?
Yes that's exactly what I did wrong. Thank you very much! On 6 Nov., 18:19, cricket zijn.digi...@gmail.com wrote: On Sat, Nov 6, 2010 at 11:45 AM, Raphi panicr...@t-online.de wrote: Hi there, I got a little issue loading up an image. All the validation works just fine but when it comes to moving things around something happens to fail. I use this very simple code to move the uploaded temp file: $filePath = WEBROOT_DIR . DS . 'product_img/'.$this-data['Product'] ['img']['name']; move_uploaded_file($this-data['Product']['img']['tmp_name'], $filePath); I have a product_img folder within my webroot folder and its permissions are set to 777. However Cake throws the following errors: Warning (2): move_uploaded_file(webroot/product_img/testbild2.jpg) [function.move-uploaded-file]: failed to open stream: No such file or directory [APP/controllers/products_controller.php, line 49] Code | Context Warning (2): move_uploaded_file() [function.move-uploaded-file]: Unable to move '/is/htdocs/user_tmp/web44/phpqKQhWD' to 'webroot/ product_img/testbild2.jpg' [APP/controllers/products_controller.php, line 49] I'm quite sure it's a problem with my filepath but I tried a lot and nothing worked here. I hope you guys will bail me out again. Look closer at the error msg. WEBROOT_DIR is just that--the name of the webroot dir. You want to use WWW_ROOT. Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
Re: Can't get SimpleTest 1.0.1 working with CakePHP 1.3.5
Thanks Nick, tests working well from the shell! Check out the new CakePHP Questions site http://cakeqs.org and help others with their CakePHP related questions. 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 For more options, visit this group at http://groups.google.com/group/cake-php?hl=en