Re: Prohibit saving of some fields

2009-04-08 Thread majna

http://teknoid.wordpress.com/2009/03/11/blacklist-your-model-fields-for-save/
http://book.cakephp.org/view/257/Configuration



On Apr 8, 6:06 pm, "marco.rizze...@gmail.com"
 wrote:
> Hi
> I would prohibit saving of some fields that in my edit action in a
> controller .
> I try with $this->Security->disabledFields = array('.); but it
> doesn't work.
> I have seen that I can set in save method which fields save but I have
> many fields so if i can set which field not save it's better for me.
> Is it possible?
> Another question
> What is the use of "$this->Security->disabledFields"?
> Thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---



Prohibit saving of some fields

2009-04-08 Thread marco.rizze...@gmail.com

Hi
I would prohibit saving of some fields that in my edit action in a
controller .
I try with $this->Security->disabledFields = array('.); but it
doesn't work.
I have seen that I can set in save method which fields save but I have
many fields so if i can set which field not save it's better for me.
Is it possible?
Another question
What is the use of "$this->Security->disabledFields"?
Thanks
--~--~-~--~~~---~--~~
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
-~--~~~~--~~--~--~---