On Tue, 8 Feb 2011 05:57:41 -0800 (PST), Dennis Jacobfeuerborn <[email protected]> wrote: > Is there a way to create a form without explicitly instantiating it in the > controller? > The use-case here is a small search form that is displayed on all pages.
> Right now I explicitely instantiate it in the controller of the page but > doing this in all Controllers would be a chore. I know that in the past > there was a "render" tag in twig that could call a controller that could > be > used for something like this but this doesn't seem to exists anymore. > What way is there to say "render the search form here" in a twig template? The render tag still exists in Twig. Where did you see it has been removed ? Thus, for a form search, you can add the form in your template without creating a Form instance for that and retrieve the parameter from the Request object. -- Christophe | Stof -- 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
