Am 24.11.10 11:52, schrieb Manu:
Hi all,
How do I configure generator.yml so that it will use one form for the
"new" action, and another for the "edit" action ?

Hi Manu,

you can define different forms in the generator.yml by creating a key "class" under the "new"/"edit" section and set it to the form class which should be used:

      new:

        class: myNewForm

      edit:

        class: myEditForm


--
Enrico Beck
Freelance Web Developer

Georg-Schwarz-Strasse 32
04177 Leipzig
Germany

fon: +49 (0)341 - 240 79 68
fax: +49 (0)911 - 30 84 42 93 36
mobile: +49 (0)163 - 467 63 99

email: [email protected]
web: http://www.enrico-beck.de

--
If you want to report a vulnerability issue on symfony, please send it to 
security at symfony-project.com

You received this message because you are subscribed to the Google
Groups "symfony users" 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/symfony-users?hl=en

Reply via email to