cakephpcheckboxcakephp-1.3hidden-fields

use of hidden field for checkboxes in cakePHP


What is the use of hidden fields for checkbox in cakePHP??


Solution

  • It's so there's always some data submitted for the field, even if the box is not checked. This becomes especially important if you're using the SecurityComponent. You can turn it off by setting 'hiddenField' => false as an option.