We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d1e14b8 commit d4358ebCopy full SHA for d4358eb
forms.rst
@@ -449,6 +449,16 @@ possible paths:
449
data is passed to it, you can
450
:doc:`use the submit() method to handle form submissions </form/direct_submit>`.
451
452
+.. tip::
453
+
454
+ If you need to render and process the same form in different templates,
455
+ use the ``render()`` function to :ref:`embed the controller <templates-embed-controllers>`
456
+ that processes the form:
457
458
+ .. code-block:: twig
459
460
+ {{ render(controller('App\\Controller\\TaskController::new')) }}
461
462
.. _validating-forms:
463
464
Validating Forms
0 commit comments