Pergunta

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

Foi útil?

Solução

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.

Licenciado em: CC-BY-SA com atribuição
Não afiliado a StackOverflow
scroll top