The showParents creates optgroup tags not additional select tags. I'm not sure if cake supports herachical selects out of the box. Seems like a good candidate for a component/helper though, either with ajax callbacks or preload all options (or both with a config option).
Geoff -- http://lemoncake.wordpress.com On Jul 16, 9:53 am, "Howard Glynn" <[EMAIL PROTECTED]> wrote: > I have a number of Categories each of which is parent to a number of > sub-categories. > You choose a category from a select and the associated sub categories > (who have a foreign key of category_id) are made available. > > I'm trying to generate what you probably recognise as a hierarchical > select menu. > > The API says... "If 'showParents' is included in the array and set to > true, an additional option element will be added for the parent of > each option group." > > There's nothing from searching, and I've been thru the src code but I > can't figure out whether I am I misinterpreting the API, does anyone > know if $form->input can do this? An example line from a view file > would be very useful? > > I'm on latest 1.2 (which is working extremely well for me I must say) > -- "select" API > Ref:http://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0... --~--~---------~--~----~------------~-------~--~----~ You received this message because you are subscribed to the Google Groups "Cake PHP" group. To post to this group, send email to cake-php@googlegroups.com 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 -~----------~----~----~----~------~----~------~--~---