I’m trying an application with Zend Expressive but I am used to work with Symfony. So I wanted to work with Symfony Form and Twig view helpers (like form_start, form_end…).
First I install symfony/form, I can create form. It is a bit more complicated than in Symfony but finaly I can create Form.
In my Twig view, I want to use form_start, form_row… It doesn’t work… So I’ve search and install symfony/twig-bridge. I’ave added a little config
‘dependencies’ => [
‘factories’ => [
TwigExtension::class => FormExtension::class,
public function __invoke() : \Twig_Extension
$formExtension = new \Symfony\Bridge\Twig\Extension\FormExtension();
but it ends with an error :
Unable to load the “Symfony\Component\Form\FormRenderer” runtime.
So now, I don’t really know if it was really a good idea…
I really like Expressive but it seems not so simple to use others libs than Zend.
Does somebody know how to achieve my problem ?