For Symfony 1.2, this is a great article:

http://www.symfony-project.org/cookbook/1_2/en/make-a-choice

How to implement a choice in a form?

But I need to know how to do this in Symfony 1.1.

I've a model that looks like this:

  new_coach:
    _attributes: { idMethod: native }
    id: { type: INTEGER, required: true, autoIncrement: true,
primaryKey: true }
    teamnumber: { type: INTEGER }
    firstname: { type: VARCHAR, size: '255' }
    lastname: { type: VARCHAR, size: '255' }
    coachtype: { type: VARCHAR, size: '255' }
    pca: { type: VARCHAR, size: '10' }


teamnumber refers to a number (not a database id - the number depends
in part on the age of players in the team) stored in the team database
table. I want to get the name of all the teams and store them in a
SELECT drop down box on my form.

How do I do this?
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"symfony users" group.
To post to this group, send email to symfony-users@googlegroups.com
To unsubscribe from this group, send email to 
symfony-users+unsubscr...@googlegroups.com
For more options, visit this group at 
http://groups.google.com/group/symfony-users?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to