it boils down to either - use security component (form fields cannot be messed with) - or use whitelisting (fieldList) on save: http://book.cakephp.org/2.0/en/models/saving-your-data.html#model-save-array-data-null-boolean-validate-true-array-fieldlist-array
Am Mittwoch, 1. August 2012 11:09:21 UTC+2 schrieb Crazy: > > You can use the model callbacks for that, the beforesave one, see: > http://book.cakephp.org/2.0/en/models/callback-methods.html#beforesave > > > On Wednesday, August 1, 2012 10:37:29 AM UTC+2, Mahmoud Adel Farid wrote: >> >> well i am worried about controller so no other team member can directly >> change some fields , i need to encapsulate some fields >> > -- 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 [email protected] For more options, visit this group at http://groups.google.com/group/cake-php
