Hi, the next thing I have to do is to generate a dropdown (selectbox) with optgroups.
In my example I want to group Locations according to their countries. At the moment I just search for the locations with find('list) and set it for the view so the select-box will be populated automatically by Cake. The problem I have now is that I have no idea how to group my locations with their corresponding countries. All locations have a field "country_id" where the country can be accessed. I assume I have to do sth with a foreach loop to populate the select box correct, but I would appreciate if someone could give me an example on how to do things like that! Thanks in advance! --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "CakePHP" group. To post to this group, send email to cake-php@googlegroups.com To unsubscribe from this group, send email to cake-php+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/cake-php?hl=en -~----------~----~----~----~------~----~------~--~---