it's working the problem about save with HABTM!!! My problem was:
$pharmacy = new Pharmacy();
$this-set('pharmacies', $pharmacy-find('all'));
The value of the parameter 'all' wasn't working.
The next works!!!
$pharmacy = new Pharmacy();
$this-set('pharmacies', $pharmacy-find('all'));
or
Hello. I can't save multiple checkbox in HABTM.
My code is:
MODEL
?php
class Turn extends AppModel {
var $name = 'Turn';
var $hasAndBelongsToMany = array( 'Pharmacy' = array( 'className' =
'Pharmacy' ) );
var $validate = array(
'name' = array(
'rule' = 'notEmpty'
),
);