Hello,
-- in your controller function (add or edit):
...
$pharmacies = $this-Turn-Pharmacy-find('list');
// FOR SELECTED CHECKBOX : (only in edit)
$options['joins'] = array(
array('table' = 'pharmacies_turns',
'alias' = 'PharmaciesTurn',
'type' =
oups, I forgive a Categorie replacement.
You must read PharmaciesTurn instead of CategoriesTurn
On 27 juil, 09:50, BenJsno bench...@yahoo.fr wrote:
Hello,
-- in your controller function (add or edit):
...
$pharmacies = $this-Turn-Pharmacy-find('list');
// FOR SELECTED CHECKBOX : (only
Thank you very much!!! It's working and it's magic like some things in
Cake...
I have problems with save with HABTM, I published other post about it called
Checkbox mĂșltiples + HABTM. Can you help with it?
Thanks!
era
--
Our newest site for the community: CakePHP Video Tutorials
Ben 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 want to show in the view a list of checkbox of Pharmacies to
assign to a Turn.
Example:
Turn: INPUT TEXT
Pharmacies:
CHKBOX1
CHKBOX2
CHKBOX3
Can help me with this?
Thanks!
eraonline
--
Our newest site for the community: CakePHP Video Tutorials
http://tv.cakephp.org
Check out the