Great, thanks @bernhard great work, at the start it seemed very confusing, maybe documentation will help to understand it better for the begginers.
On Tue, Apr 26, 2011 at 3:58 PM, Bernhard Schussek <bschus...@gmail.com>wrote: > 2011/4/26 Gediminas Morkevicius <gediminas.morkevic...@gmail.com>: > > And as we started about choice field, how to add @empty value into the > > entity type choice list. > > I need to be able to set the relation to NULL pointed. > > Set the 'required' option to false. Additionally you can overwrite the > label of the empty value in the template: > > {{ form_widget(form.mychoice, { 'empty_value': 'Please select a value...' > }) }} > > > Also, is it possible to render field manually, like: > > > > input type="text" name="correct[path]" value="{{ formView.field }}" > > Yes. form.vars, form.field.vars etc. contain the template variables of > each object, amongst them: "id", "name", "value", "required" etc. > > That is > > {{ form.vars.id }} > {{ form.field.vars.id }} > {{ form.field.vars.value }} > > etc. > > Bernhard > > -- > 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 > -- 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