CakePHP mutliple checkbox input

This is just here because I always forget how to do it:

echo $form->input('fieldname', array('options'=>array('1'=>'val1', '3'=>'val2' [...]), 'multiple'=>'checkbox', 'label'=>'Da Label'));

Leave a Comment

Your email address will not be published. Required fields are marked *