Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-05 Thread Don Pinkster
Awesome, thanks! Maybe possible to make a shortcut for this? Like: {{ form.name.value }} On Wed, May 4, 2011 at 9:38 PM, Bernhard Schussek bschus...@gmail.com wrote: Hi, Try form.vars.value. Bernhard -- If you want to report a vulnerability issue on symfony, please send it to security

Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-05 Thread Bernhard Schussek
2011/5/5 Don Pinkster d...@pinkster.eu: Awesome, thanks! Maybe possible to make a shortcut for this? Like: {{ form.name.value }} No, this would break consistency. Better documentation should solve this problem. Bernhard -- If you want to report a vulnerability issue on symfony, please send

Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-05 Thread Fabien Potencier
On 5/5/11 11:29 AM, Bernhard Schussek wrote: 2011/5/5 Don Pinksterd...@pinkster.eu: Awesome, thanks! Maybe possible to make a shortcut for this? Like: {{ form.name.value }} No, this would break consistency. Better documentation should solve this problem. Can someone create a ticket so that

Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-05 Thread Don Pinkster
The ticket is created: https://github.com/symfony/symfony/issues/784 On Thu, May 5, 2011 at 12:33 PM, Fabien Potencier fabien.potenc...@symfony-project.com wrote: On 5/5/11 11:29 AM, Bernhard Schussek wrote: 2011/5/5 Don Pinksterd...@pinkster.eu: Awesome, thanks! Maybe possible to make a

[symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-04 Thread Don Pinkster
Hello list, How can I retrieve the value of the object (data_class) in my Twig view for a readonly purpose? In symfony 1 I could use $form['field']-getValue(). Thanks in advance. -- If you want to report a vulnerability issue on symfony, please send it to security at symfony-project.com You

Re: [symfony-users] [Symfony2][Forms] Object value in Twig template

2011-05-04 Thread Bernhard Schussek
Hi, Try form.vars.value. 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