19Gerhard85 / sfSelect2WidgetsPlugin

Collection of Select2 Widgets for Symfony 1.2 / 1.3 / 1.4

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

sfSelect2WidgetsPlugin

License Total Downloads Monthly Downloads Daily Downloads Scrutinizer Code Quality

Description

The sfSelect2WidgetsPlugin is a symfony 1.2 / 1.3 / 1.4 plugin that provides several form widgets with Select2 functionality. Following widgets are included:

  • I18n Choice Country
  • I18n Choice Currency
  • I18n Choice Language
  • Autocomplete (for Propel ORM)
  • Choice
  • Propel Choice (for Propel ORM)

Requirements

Installation via Composer

{
    "require": {
        "bgcc/sf-select2-widgets-plugin": "dev-master"
    }
}

Installation via Git

  • Install the plugin and init submodule

    $ git submodule add git://github.com/19Gerhard85/sfSelect2WidgetsPlugin.git plugins/sfSelect2WidgetsPlugin
    $ git submodule update --init --recursive
    
  • Enable the plugin in your /config/ProjectConfiguration.class.php

    $this->enablePlugins('sfSelect2WidgetsPlugin');
  • Publish assets

    $ ./symfony plugin:publish-assets
    
  • Clear you cache

    $ ./symfony cc
    

Installation via SVN

  • Install the plugin and Select2 JavaScript library

    $ svn propedit svn:externals plugins
    Enter (without quotes) "sfSelect2WidgetsPlugin https://github.com/19Gerhard85/sfSelect2WidgetsPlugin/trunk"
    $ svn update
    $ svn propedit svn:externals plugins/sfSelect2WidgetsPlugin/web
    Enter (without quotes) "select2 https://github.com/ivaynberg/select2/trunk"
    $ svn update
    
  • Enable the plugin in your /config/ProjectConfiguration.class.php

    $this->enablePlugins('sfSelect2WidgetsPlugin');
  • Publish assets

    $ ./symfony plugin:publish-assets
    
  • Clear you cache

    $ ./symfony cc
    

Usage

Coming soon...

About

Collection of Select2 Widgets for Symfony 1.2 / 1.3 / 1.4

License:MIT License


Languages

Language:JavaScript 78.4%Language:PHP 11.7%Language:CSS 9.3%Language:Shell 0.6%