I cant seem to get any label displaying despite the html code below.
echo $this->Form->checkbox('done', ['label'=>'itm','value' => 555]);
input name=“done” value=“555” label=“itm” type=“checkbox”>
I cant seem to get any label displaying despite the html code below.
echo $this->Form->checkbox('done', ['label'=>'itm','value' => 555]);
input name=“done” value=“555” label=“itm” type=“checkbox”>
You have to use input method, you get a wrapper, label, and if necesary an error span (in case of a validation fail). If you call directly to checkbox you get just the input tag
echo $this->Form->input('done', ['type' => 'checkbox', 'label'=>'itm','value' => 555]);