Using a hidden field for flags in cakePHP

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

+3
source share
1 answer

This is so there is always some data presented for the field, even if the checkbox is not checked. This becomes especially important if you are using SecurityComponent . You can disable it by setting 'hiddenField' => falseas an option.

+11
source

Source: https://habr.com/ru/post/1760242/


All Articles