A scaffolding input for multple checkboxes with habtm
We have mutiple conditions, which are habtm to
echo "<!--{$form->input('Condition')}-->"; if(is_array($conditions)){ foreach($conditions as $condition => $title){ print $title . "<input type='checkbox' value='{$condition}' name='data[Profile][Profile][]'>". "\n"; } }