choros / form-bundle
Extra form types for your Symfony2 projects
Installs: 81
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 2
Forks: 263
Type:symfony-bundle
Requires
- php: >=5.3.2
- symfony/form: >=2.3,<2.6-dev
- symfony/framework-bundle: >=2.3,<2.6-dev
Requires (Dev)
- doctrine/doctrine-bundle: 1.*
- doctrine/mongodb-odm-bundle: *
- doctrine/orm: 2.*
- propel/propel-bundle: *
- symfony/doctrine-bridge: >=2.3,<2.6-dev
- symfony/finder: 2.*
Suggests
- doctrine/doctrine-bundle: In order to use some form types with Doctrine
- doctrine/mongodb-odm-bundle: For MongoDB integration
- symfony/finder: For an image type
- symfony/twig-bridge: For integration into Twig templates
README
#FormBundle
Installation
Installation is quick and easy, 3 steps process
- Install GenemuFormBundle
- Enable the bundle
- Initialize assets
Step 1: Install GenemuFormBundle
Add the following dependency to your composer.json file:
{ "require": { "_some_packages": "...", "genemu/form-bundle": "2.1.*" => for Symfony 2.1 and 2.2 "genemu/form-bundle": "2.2.*" => for Symfony 2.3 } }
Step 2: Enable the bundle
Finally, enable the bundle in the kernel:
<?php // app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Genemu\Bundle\FormBundle\GenemuFormBundle(), ); }
Step 3: Initialize assets
$ php app/console assets:install web/
Form types
Select2 (view demo):
Captcha GD
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):
Plain
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
.
Tips
Prototype usage within form collections
Template
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
Note
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.