codete / formgeneratorbundle Goto Github PK
View Code? Open in Web Editor NEWSymfony Bundle for dynamic Form generation
License: MIT License
Symfony Bundle for dynamic Form generation
License: MIT License
Hello,
I was wondering if you change this codes to allow options to be passed using the form builder.
It would allow me to disable csrf_protection when needed.
* Creates FormBuilder and populates it.
*
* @param object $model data object
* @param string $form view to generate
* @param array $context
* @param array $options
* @return FormBuilderInterface
*/
public function createFormBuilder($model, $form = 'default', $context = [], $options=[])
{
$fb = $this->formFactory->createBuilder(FieldTypeMapper::map('form'), $model, $options);
$this->populateFormBuilder($fb, $model, $form, $context);
return $fb;
}
It worked for me locally. If you want I can make a pull request. If their guidelines for me to follow please provide me a link.
Thank you in advance.
Danny
Hello, if i had nested objects in my model, can i generate form with your lib?
It would be nice if the form validation will be integrated/documented.
This can be done after Symfony releases 3.4 and 4.0 versions.
Hello,
When I render a form which contains embedded forms.
My labels are rendered twice.
Onces for the Embed form(first) and once for the Display form(second).
Please advise how I can make a unit test for this, so I can help solve it.
Kind regards,
Danny
PR for this task should also add all the shiny things latest PHP is giving us
It was a mistake that came from initial internal implementation
It was superseded with @Field
in 1.3.
3.4 will be next LTS version. Along with the PR the BC layer for translating form types should be dropped.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.