Am Sonntag, 29. Juli 2012 04:17:24 UTC+2 schrieb Steven Scaffidi:
Ok nevermind I changed the fields to INT and now they work fine. One more question is there a way to change the defaults on the number helper. For example, when I say$this->Number->currency($price); Is there a way I can set the places to 0 by default instead of 2?
On Saturday, July 28, 2012 8:53:57 PM UTC-5, Steven Scaffidi wrote:Hi,I have an form and one of the inputs is price. So if someone enters 1,500 then for some reason it's cutting off the numbers after the comma. I looked at the print_r for $this->request->data and it shows the price as 1,500. Any ideas why it's cutting it off once it gets to the MySQL database. I have the field as a varchar. Should I make it an int?Steven
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.com For more options, visit this group at http://groups.google.com/group/cake-php
No comments:
Post a Comment