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