The way you have done it works. Another idea is to add a method to your original form, such as makeAbbreviated(), where you make necessary changes to the form's appearence/functionality before showing it to the user. Those changes could include adding/removing widgets and validators, I think you can just use useFields(), but if it doesn't work call parent::configure() over again or don't remove any fields during the configuration. That way there isn't another file to maintain.
HTH, Casey On May 3, 12:36 pm, Javier Garcia <tirengar...@gmail.com> wrote: > Hi, > > i have doubts about what is better practice: > > for example, I have this model: > > Message: > actAs: [Timestampable] > columns: > sf_guard_user_id: integer(4) > receptor: integer(4) > type: integer(1) > title: > type: string(100) > notnull: true > content: > type: string(4000) > notnull: true > estado: boolean > > And I have created a form class extending the form generated: > > class AbbreviatedMessageForm extends MessageForm > { > public function configure() > { > > } > > } > > Inside the configure() function: > > I dont know if writing this: > > parent::configure(); > $this->useFields(array('title','content')); > > or declaring the widgets with the setWidget() function. > > -- > > Javi > > Ubuntu 8.04 > > -- > 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 symfony-users@googlegroups.com > To unsubscribe from this group, send email to > symfony-users+unsubscr...@googlegroups.com > For more options, visit this group > athttp://groups.google.com/group/symfony-users?hl=en -- 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 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