On Wed, Apr 28, 2010 at 9:20 AM, archeons <[email protected]> wrote: > Is it possible to do a custom validation in cake with the conditions: > 1. database only has 1 field lets say price > 2. there are 3 input column price 1, 2 & 3. > 3. I want to do validate if one of the price is inputted then that no > error where all three no input then throw error. > > How to implement this? > Do we have to create our own in view or this can be done in model even > there is only 1 database field? > > Any advice is really appreciated.
That's weird if you only have one field on a table. What's the primaryKey for that table? Is there any association on that table? The validation will be easy for you if you follow cake's convention. -- regards, gedex blog: http://gedex.web.id 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 [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/cake-php?hl=en
