On 10/22/10 10:33 AM, Lukas Kahwe Smith wrote:

On 22.10.2010, at 10:08, Jordi Boggiano wrote:

On 21.10.2010 19:36, Lukas Kahwe Smith wrote:
Finally I wonder if we should have something to render a<form>  tag:
<form action="{% route 'doctrine_user_session_create' %}" {{ form|render_enctype } 
method="POST" class="doctrine_user_session_new">

It could be interesting as something like:

{% form formVar get|post 'doctrine_user_session_create' with
['routeparams'] theme_with 'MehBundle::form.twig' %}

{% endform %}

Obviously the minimal version would be:

{% form formVar post 'doctrine_user_session_create' %}

And I'm willing to implement it if the collective thinks it's a good idea ;)


and once we have that .. we might think about how to easily add a submit button 
to a form inside a template and then rendering a form could become a one or two 
liner ..

Please, don't do that. We had that in symfony1 and let's not do the same errors again.

Fabien

regards,
Lukas Kahwe Smith
[email protected]




--
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 developers" 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-devs?hl=en

Reply via email to