Oh, very nice. Thanks mucho Geoff On Jul 22, 9:14 pm, Geoff Ford <[EMAIL PROTECTED]> wrote: > In 1.2 you should be using > Form::selecthttp://api.cakephp.org/1.2/class_form_helper.html#5171e675468c9665db0... > > The third param is which items are selected. > > Geoff > --http://lemoncake.wordpress.com > > On Jul 23, 1:59 pm, beetlecube <[EMAIL PROTECTED]> wrote: > > > I tried searching the board and reading the 1.2 API, but couldn't get > > this working completely. > > > The option drop down does appear, and the values do appear. Very > > simple one: > > > echo $html->selectTag('Post/genre_id', array("0" => "Biography","1" => > > "Drama","2" => "Comedy","3" => "Action","4" => "Sci Fi","5"=> > > "Horror")); > > > And I have this Option control in an "edit post" page, where users > > edit their comment on a particular book. > > > ( The various other fields are Post/title, Post/body, etc..) > > > The Select option control, specifically, is named "Post/genre_id" as > > you can see in the selectTag statement above. > > > .... So all I really need is a way to auto-select the value > > according to the particular Post table record that is being edited. > > > I don't think I need generateList(), because I'm just listing a static > > list of id/labels. The "Post" table only stores the integer in > > genre_id. That's why I'm hard-coding the genre names right into the > > View file. > > > Steve
--~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---