Forked version of the genemu/form-bundle which is compatible with PHP7 and Symfony 3.4.
Installation is quick and easy 3 step process:
- Install GenemuFormBundle
- Enable the bundle
- Initialize assets
To use this version of the Genemu Form Bundle, add the following to your composer.json
:
"repositories": [
{
"type": "vcs",
"url": "https://github.com/Codevate/GenemuFormBundle"
}
],
And then require the bundle itself:
"require": {
"php": ">=7.1",
"symfony/symfony": "~3.4",
"genemu/form-bundle": "dev-master",
...
},
Afterwards you should be able to run composer update
to download this version of the bundle.
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Genemu\Bundle\FormBundle\GenemuFormBundle(),
);
}
$ php bin/console assets:install web/
Select2 (view demo):
ReCaptcha (Google library):
JQueryUi (download):
A Form type that just renders the field as a p tag. This is useful for forms where certain field need to be shown but not editable.
The type name is genemu_plain
.
Prototype usage within form collections
You use GenemuFormBundle and you seen that it does not work!
Maybe you have forgotten form_javascript
or form_stylesheet
.
The principle is to separate the javascript, stylesheet and html. This allows better integration of web pages.