2017 © Pedro Peláez
 

symfony-bundle extra-form-bundle

extra form type bundle

image

snide/extra-form-bundle

extra form type bundle

  • Thursday, April 20, 2017
  • by pdenis
  • Repository
  • 0 Watchers
  • 1 Stars
  • 211 Installations
  • JavaScript
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 1 Versions
  • 0 % Grown

The README.md

SnideExtraFormBundle

Extra form types for symfony 2, (*1)

Scrutinizer Quality Score, (*2)

features

  • Double list type based on jQuery multiselect2side plugin

Installation

Installation by Composer

If you use composer, add ExtraFormBundle bundle as a dependency to the composer.json of your application, (*3)

    "require": {
        ...
        "snide/extra-form-bundle": "dev-master"
        ...
    },

Add SnideExtraFormBundle to your application kernel., (*4)

// app/AppKernel.php
<?php
    // ...
    public function registerBundles()
    {
        $bundles = array(
            // ...
            new Snide\Bundle\ExtraFormBundle\SnideExtraFormBundle(),
        );
    }

The bundle needs to copy the resources necessary to the web folder. You can use the command below:, (*5)

    php app/console assets:install

Include in template

This bundle comes with an extension for Twig. To init CSS scripts use This makes it very easy to include the extra form Javascript and CSS into your pages only if needed. It will output the complete Javascript, including <script> tags and add stylesheets. Add it to the bottom of your page., (*6)

    {{ snide_extra_form_init() }}

Base configuration

    snide_extra_form:
        include_jquery: true

The option include_jquery allows you to load external jQuery library from the Google CDN. Set it to true if you haven't included jQuery on your page., (*7)

The Versions

20/04 2017

dev-master

9999999-dev http://github.com/pdenis/SnideExtraFormBundle

extra form type bundle

  Sources   Download

MIT

by Pascal DENIS

form extra