Answer the question
In order to leave comments, you need to log in
How to work with Symfony Form as a separate component?
Good afternoon. Why is it so difficult with Symphony? why so many dependencies? I want to make a simple form. Opening the Documentation
use Symfony\Component\Form\Forms;
$formFactory = Forms::createFormFactory();
{{ form(form) }}
, public function actionCreate() {
$formFactory = Forms::createFormFactory();
$form = $formFactory->createBuilder()->getForm();
$this->twig->addExtension(new FormExtension());
return $this->renderView('create-article.twig', ['form' => $form]);
}
Fatal error: Uncaught Twig\Error\RuntimeError: Unable to load the "Symfony\Component\Form\FormRenderer" runtime
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question