Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Extra Form : Captcha GD, Tinymce, Recaptcha, JQueryDate, JQueryAutocomplete, JQuerySlider, JQueryFile, JQueryImage
PHP
branch: master

This branch is 302 commits behind genemu:master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
Controller
DependencyInjection
Form
Gd
Geolocation
Resources
Tests
Twig/Extension
vendor
.gitignore
.travis.yml
GenemuFormBundle.php
README.markdown
Rakefile
composer.json
phpunit.xml.dist

README.markdown

FormBundle

Build Status

Installation

Installation is quick and easy, 5 steps process

  1. Download GenemuFormBundle
  2. Configure the Autoloader
  3. Enable the bundle
  4. Minimal configuration
  5. Initilize assets

Step 1: Download GenemuFormBundle

Check your Symfony2 version.

Symfony2 branch v2.*

Symfony2 branch master

Step 2: Configure the Autoloader

If it is the first Genemu bundle you install in your Symfony 2 project, you need to add the Genemu namespace to your autoloader:

<?php
// app/autoload.php

$loader->registerNamespaces(array(
    // ...
    'Genemu' => __DIR__.'/../vendor/bundles',
));

Step 3: 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 4: Minimal configuration

# app/config/config.yml

genemu_form: ~

Step 5: Initialize assets

$ php app/console assets:install web/

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

FormType

Captcha GD

View configuration

ReCaptcha (Google librairie):

View configuration

Tinymce (download):

View configuration

JQueryUi (download):

File (uploadify library):

You can use jcrop to uploadify. You send the image and crop or apply filter.

View configuration

Image (view demo):

View configuration

Colorpicker (view demo):

View configuration

Rating (view demo):

View configuration

Chosen (view demo):

View configuration

Tokeninput (view demo):

Note: you have to apply path to js script before: https://github.com/loopj/jquery-tokeninput/pull/172/files.

Configuration is almost the same as Autocomplete.

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.

Note

There is maybe bugs in this implementations, this package is just an idea of a form field type which can be very useful for the Symfony2 project.

Something went wrong with that request. Please try again.