How to render standalone Symfony Form without Twig?
Asked Answered
O

0

9

I have Symfony\Component\Form\FormView object. How do I render it without Twig and framework?

Specifically I want to use Symfony Form in Concrete5 custom block type.

Osteoblast answered 19/1, 2015 at 13:41 Comment(2)
Why would anyone vote to close this?Expansionism
You should develop your own FormRenderer implementing \Symfony\Component\Form\FormRendererInterface. You will also need a FormRenderingEngine based on \Symfony\Component\Form\FormRendererEngineInterface. See existing ones for Twig for reference.Sibyls

© 2022 - 2024 — McMap. All rights reserved.