Re: Carregar campo tipo tinyint(1)

2013-04-30 Thread Ciul
Hi Anderson, I don't speak Portuguese but Google Translator made it :P Anderson, if you read at: http://book.cakephp.org/2.0/en/core-libraries/helpers/form.html#FormHelper::checkbox you will see that a tinyint(1) is likely a flag, on/off. And you are using an 'options' key in the options array.

Carregar campo tipo tinyint(1)

2013-04-30 Thread Anderson Moraes
Pessoal, boa tarde. Eu fiz um CRUD de clientes, onde um dos campos da minha tabela é do tipo "tinyint(1)", o nome do campo é "status". Então, quando eu clico no controller edit que chama a minha view ele carrega os campos do formulário corretamente, inclusive o campo do tipo "select" de estado