Built-in whitelisting:

$this->Post->save($data, array('fieldList' => array('field1',
'field2', 'field3')));

hth
grigri

On Dec 18, 1:29 pm, Henrik Gemal <henrikge...@gmail.com> wrote:
> Is there a way in the model to say that it should only be possible to
> submit these values in the post?
>
> I want to disallow the user posting any other form fields that I have
> specified in the model's validate array?
--~--~---------~--~----~------------~-------~--~----~
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