I cannot get the values to auto check. The list of options displays fine.
$this->data['Business']['ExpertiseType'] has values.
Business habtm ExpertiseType defined in all three models still set to their default bake.
Business belongsTo FormEoiEntry
$this->data = $this->FormEoiEntry->find('first', ['conditions'=>['FormEoiEntry.id'=>1324], 'recursive'=>2]);
$this->Form->create('FormEoiEntry');
$this->Form->input('Business.ExpertiseType', ['multiple'=>'checkbox']);
$this->Form->end();
Am I missing something here? I cannot figure out why it is not being detected and checking the boxes.
set
expertise_types
from your controller like this.and in your view
update
In that case pass the selected options values to the
$this->request->data['Business']['ExpertiseType']
just like this