I just browsed the 1.x code, and I didn't see any "optgroup" possibility in the HtmlHelper
But when searching in Trac: https://trac.cakephp.org/changeset/3326 This feature is available only in FormHelper in 1.2 On 3 avr, 13:04, "TWIOF" <[EMAIL PROTECTED]> wrote: > HI everyone, > > i'm trying to set up a selectTag with optgroupes and have seen > this:http://api.cakephp.org/class_html_helper.html#dc661e84e1710023d94691f... > > but what do i put in? > > $ fieldName, > $ optionElements = array(), > $ selected = null, > $ selectAttr = array(), > $ optionAttr = array(), > $ showEmpty = true, > $ return = false > > a nested array doesn't work do i need separate arrays for selectAttr > and optionAttr? > > If anyone has an example of this working it would be much appreciated. > > Cheers > > TWIOF --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---