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 3:30 PM, Tom Ptacnik <[email protected]> wrote: > Related topics on the forum > http://forum.symfony-project.org/index.php?t=rview&goto=92113#msg_92113 > > On 25 led, 14:08, karansoni <[email protected]> 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) 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 > > > > executeEdit() > > { > > $this->form=new EmpEditForm(); > > > > } > > > > this will work for sure > > -- > 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]<symfony-users%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/symfony-users?hl=en. > > -- 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.
