See the following code: <?php // HABTM model fields in view foreach ($daysOfWeek as $k => $day) { echo $form->input('BusinessHour.'.$k.'.day', array('type' => 'hidden', 'value' => $k)); }
// Disabling the fields with the Security Component (in controller)? $this->Security->disabledFields = array('BusinessHour.day'); ?> For HABTM model fields like the ones generated in that foreach loop, do I disable ALL of those fields via Security->disabledFields in the controller as I have indicated? -- 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 cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php