Multiple checkboxes in CakePHP - how to set which are checked?
cakephp, cakephp-2.0, checkbox
Solution
this looks like this one
cakephp: How to set checkbox to checked?
where `$selected` contains the selected values
Problem
I have multiple checkboxes in CakePHP's Add/Edit view, created with: ``` echo $this->Form->input('email_warning_chb', array('type'=>'select', 'multiple'=>'checkbox', 'label'=> __('Email notice'), 'class'=>'multiple-chb', 'options'=> array('title...'=>array( '5'=>'5 days', '15'=>'15 days', '30'=>'30 days', '60'=>'60 days'); ``` My question is how to set which one are checked by default (ie. in thi example, 5, 15 and 60)? Thank you in advance!