Why do you call save when validation in the controller fails?
Save validates your data using the validation rules in your model. If
you want to do some extra validate in your controller, you should make
sure, that you don't call save when the extra validation fails.

Did you setup validation rules in your item model? Check the Cookbook
for help on that topic: http://book.cakephp.org/view/125/Data-Validation
For validation inside your controller you should check this link:
http://book.cakephp.org/view/410/Validating-Data-from-the-Controller

Hope that helps
Markus
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to