Impossible to show CakePhp CheckBox

89 Views Asked by At

I'm developping my application and I got stuck with a little problem. I have to use checkboxes but when declaring them i got nothing on my view, i mean that the checkbox doesn't appear

echo $this->Form->input('Class.id', array( 
    'options'=>$classes,
    'type'=>'select',
    'multiple' => 'checkbox'));

Please could anyone help! Thanks

1

There are 1 best solutions below

1
On

Use echo $this->Form->checkbox('name');