The reason--I think--this is unlikely to work is that the HABTM select list uses some model's ID to associate with whatever model is the main focus of the form. You cannot have the same foreign key combinations in your join table but this is precisely what you're setting up for. What if a user selected all the same values?
Anyway, FormHelper uses the model and field names to create the form element names, so this would likely make a bit of a mess of your form. On Sun, Feb 15, 2009 at 2:38 PM, ramonmaruko <[email protected]> wrote: > > The default input type for a HABTM relationship when I bake is the > <select> one where we could select multiple options(CTRL + Click in > Windows) in one field. (Am I correct? I can't look at the source code > right now since I'm not at home.) > > But what I want is that the user would be presented with three select > fields, each having the same options with the original baked one. Only > three, since that's the limit that what my design for my project is. I > hope you could just understand what I am saying. :/ > > ************************ > FUgly ASCII art alert! > ************************ > > Oringinal baked field: > > Tags: > |==============| > | cakepha ||| > | cakephb ||| > | cakephc ||| > |==============| > > What I want it to be: > > Tag 1: > |==============| > | cakepha ||| <--- Also has options 'cakephb' and > 'cakephc' > |==============| > > Tag 2: > |==============| > | cakepha ||| > |==============| > > Tag 3: > |==============| > | cakepha ||| > |==============| > > > > --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" 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 -~----------~----~----~----~------~----~------~--~---
