[symfony-users] Re: Different edit and new forms: what should i do with _form.php

2010-01-26 Thread Tom Ptacnik
Related topics on the forum http://forum.symfony-project.org/index.php?t=rviewgoto=92113#msg_92113 On 25 led, 14:08, karansoni kanu8...@gmail.com wrote: Make two forms 1)           Emp_Form 1st one a having widgets  name, address, and city AND THAT form will extend your base form 2)      

Re: [symfony-users] Re: Different edit and new forms: what should i do with _form.php

2010-01-26 Thread Stéphane
I prefer using what is done in the related topic (link given by Tom) than creating two distinct forms. Less classes, less code. Cheers, Before Printing, Think about Your Environmental Responsibility! Avant d'Imprimer, Pensez à Votre Responsabilitée Environnementale! On Tue, Jan 26, 2010 at

[symfony-users] Re: Different edit and new forms: what should i do with _form.php

2010-01-25 Thread karansoni
Make two forms 1) Emp_Form 1st one a having widgets name, address, and city AND THAT form will extend your base form 2) Emp_edit_form 2nd form will extend ur sfForm or Doctrine form and there u give widget name. then in the same module you can change in actions that