fousheezy / slim-form
This library provides a way of annotating Doctrine Entities to be rendered as forms
dev-master
2014-08-17 18:38 UTC
Requires
- php: >=5.4.0
- doctrine/annotations: *
- doctrine/common: *
- doctrine/orm: *
- slim/slim: >=2.3.0
- slim/views: 0.1.*
- twig/twig: *
This package is not auto-updated.
Last update: 2025-03-05 06:46:19 UTC
README
This library brings together the Doctrine Annotation library to turn a Doctrine entity into an HTML form by way of Twig view helpers.
Setup
In your bootstrap file, configure the Doctrine entity manager and Twig View class provided by Slim, then invoke the SlimForm bootstrap's setup functions:
\SlimForm\Bootstrap::getInstance() ->setAnnotationReader($annotationReader) ->setView($view);
This will add the necessary template directory and twig extensions to the view object and set up the appropriate annotation readers for Doctrine.