LiformBundle | Symfony Bundle to render Symfony Forms to JSON Schema | JSON Processing library
kandi X-RAY | LiformBundle Summary
kandi X-RAY | LiformBundle Summary
Bundle that integrates [Liform] into Symfony. Liform is a library to serialize Symfony Forms into [JSON schema] For use with [liform-react] or [json-editor] or any other form generator based on json-schema. It is very annoying to maintain Symfony forms that match forms in a client technology, such as JavaScript. It is also annoying to maintain a documentation of such forms. And it’s error prone, too. LiformBundle generates a JSON schema representation, that serves as documentation and can be used to validate your data and, if you want, to generate forms using a generator.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- Registers the transformer .
- Loads the configuration .
- Registers the compiler .
LiformBundle Key Features
LiformBundle Examples and Code Snippets
Community Discussions
Trending Discussions on LiformBundle
QUESTION
I'm trying to generate a JSON of my form type in my controller using liform or liform-bundle but got the error :
CRITICAL - Uncaught PHP Exception Symfony\Component\Debug\Exception\UndefinedMethodException: "Attempted to call an undefined method named "getBlockPrefix" of class "Symfony\Component\Form\Extension\DataCollector\Proxy\ResolvedTypeDataCollectorProxy"." at /home/admin/Documents/displayce/code/vendor/limenius/liform/src/Limenius/Liform/FormUtil.php line 39
the code in my controller :
...ANSWER
Answered 2017-Sep-01 at 05:08add a getBlockPrefix to your formType and targeting type like this :
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install LiformBundle
Open a console, navigate to your project directory and execute the following command to download the latest stable version of this bundle:. This command requires you to have Composer installed globally, as explained in the installation chapter of the Composer documentation.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page