On Mar 24, 8:24 pm, JamesF <[email protected]> wrote: > echo $form->select('option_field_label', $types, null, null); > > will yield this output: > > <option value="0">test data</option> > <option value="1">test data b</option> > > I want: > > <option value="test data">test data</option> > <option value="test data b">test data b</option>
How about: $types = array_combine($types, $types); --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
