#FormBundle
Bundle minor versions are based on Symfony ones :
- 2.0 provides compatibility with Symfony 2.0
- 2.1 provides compatibility with Symfony 2.1
- 2.2 provides compatibility with Symfony 2.2
Installation is quick and easy, 3 steps process
- Install GenemuFormBundle
- Enable the bundle
- Initialize assets
Add the following dependency to your composer.json file:
{
"require": {
"_some_packages": "...",
"genemu/form-bundle": "2.1.*"
}
}
Finally, enable the bundle in the kernel:
<?php
// app/AppKernel.php
public function registerBundles()
{
$bundles = array(
// ...
new Genemu\Bundle\FormBundle\GenemuFormBundle(),
);
}
$ php app/console assets:install web/
Select2 (view demo):
ReCaptcha (Google library):
Tinymce (download):
JQueryUi (download):
File (uploadify library):
You can use jcrop to uploadify. You send the image and crop or apply filter.
Image (view demo):
Colorpicker (view demo):
Rating (view demo):
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.
View a template example form view
There are maybe some bugs in those implementations, this package is just an idea of form types which can be very useful for your Symfony2 projects.