You could just add the hidden field to the form class like: $this->widgetSchema['secret_hidden_field'] = new sfWidgetFormInputHidden();
don't forget to add the validator. If I remember correctly there is a call to renderHiddenFields() already in _form.php. You should only have to change the form, there isn't a need to change the generator.yml file or the _form.php file AFAIK. HTH, Casey On May 3, 12:48 pm, Augusto Flavio <[email protected]> wrote: > Hi, > > What is the best way to add a hidden field in a form in the backend ? Is > there some way to do it using the generator.yml or need i change the > _form.php template? > > Thanks > > Augusto Morais > > -- > 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 > 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 [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
