How to add a custom symfony form? #339
-
Custom Symfony Form & Twig TemplatesMy goal is to create a pure symfony form in sulu. I am a using the default sulu admin ui and have not extended anything. I am not using any custom controllers or entites etc. How do I do that? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 3 replies
-
@nlipkanov for "pure symfony" form you don't need a SuluFormBundle you Create a Custom Controller for your Sulu Template and handle the Form there like you would do it in a normal Symfony Application. The Sulu Form Bundle allows the Content Manager to create Forms, this specially make sense for simple forms like a "Contact" Form. Any form without a special business Logic behind it. So the Content Manager can decide which fields he want and should be shown for that form. |
Beta Was this translation helpful? Give feedback.
@nlipkanov for "pure symfony" form you don't need a SuluFormBundle you Create a Custom Controller for your Sulu Template and handle the Form there like you would do it in a normal Symfony Application.
The Sulu Form Bundle allows the Content Manager to create Forms, this specially make sense for simple forms like a "Contact" Form. Any form without a special business Logic behind it. So the Content Manager can decide which fields he want and should be shown for that form.