That's overkill !! But I don't want to access this data in the
template but in the FormType class.

On 13 mai, 20:40, thesaint <gabriel.bi...@gmail.com> wrote:
> I've asked a similar question here (https://groups.google.com/group/
> symfony-users/browse_thread/thread/aadd88b1f1557f56 ). The best way
> IHMO is to generate the form action URL in the controller and assign
> it to the template.
>
> On 13 Mai, 19:46, Christophe Willemsen
>
>
>
>
>
>
>
> <willemsen.christo...@gmail.com> wrote:
> > Hey Bernhard,
>
> > Thanks for your reply, I was looking for an equivalent of the $this-
>
> > >isNew() method in the sf1.4 forms.
>
> > As this method is an Active Record method, I guess it is no more
> > available for Doctrine2 ?
>
> > Grtz
>
> > On 13 mai, 19:25, Bernhard Schussek <bschus...@gmail.com> wrote:
>
> > > 2011/5/13 Christophe Willemsen <willemsen.christo...@gmail.com>:
>
> > > > What's the best way in the form type class to verify if it is a new
> > > > form or an update form ?
>
> > > You can't, you can only do so in listeners to the *SetData events.
> > > What are you trying to achieve?
>
> > > 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

Reply via email to