Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread eraonline
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'));

Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread eraonline
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 http://tv

Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread BenJsno
oups, I forgive a "Categorie" replacement. You must read "PharmaciesTurn" instead of "CategoriesTurn" On 27 juil, 09:50, BenJsno wrote: > Hello, > > -- in your controller function (add or edit): > ... > $pharmacies = $this->Turn->Pharmacy->find('list'); > // FOR SELECTED CHECKBOX : (only in

Re: Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-27 Thread BenJsno
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' => '

Multiples Checkbox and hasAndBelongsToMany (HABTM)

2011-07-26 Thread eraonline
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