I searched on as to make select multiply with HasAndBelongsToMany
relationships and the result most interesting had been:

http://manual.cakephp.org/chapter/models
http://edivad.wordpress.com/2007/04/19/cakephp-hasandbelongstomany-habtm/

I obtained to use helpers suggested more generatelist of the same and
gave in the line below in view:

 <? php echo $html->selectTag ("Category/id", $categorylist, null,
Array ("multiple" => "multiple")) >

It brings itens, everything right , but in the hour to save he does
not function (he does not accuse no error), I did not obtain to
identify what I made of wrong. In model Product and Category are the
relationships HasAndBelongsToMany.
It has an intermediate table with the name categorys_products and the
fields products_id and categorys_id and are PK's.

Somebody has idea of what I made wrong? ?

PS: Sorry my english.


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Cake 
PHP" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/cake-php?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to