Ah, thank you Nate! That has worked perfectly.

For anyone else interested:

$options = array('1' => 'One', '2' => 'Two', '3' => 'Three');
print $html -> input('Numbers', array('label' => 'Choose a number',
$options));


On May 29, 3:05 pm, Nate <[EMAIL PROTECTED]> wrote:
> It should not be doing an optgroup unless 'options' is a nested array.
>
> On May 29, 9:31 am, kez <[EMAIL PROTECTED]> wrote:
>
> > Hello -
>
> > Hunted around quite extensively to find out how to disable option
> > grouping with $form -> input().
>
> > I am using a hardcoded list of options:
>
> > print $form -> input('myDropDown', array('options' => array('1', '2',
> > '3')));
>
> > Which is generating the option groupings - which I don't want.
>
> > Anyone got any ideas?!
>
> > Cheers,
>
> > kez.

--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---

Reply via email to