bgcc/sf-select2-widgets-plugin

Select 2 Widgets for Symfony 1

Installs: 1 570

Dependents: 0

Suggesters: 0

Security: 0

Stars: 6

Watchers: 3

Forks: 3

Open Issues: 1

Language:JavaScript

Type:symfony1-plugin

1.0.2 2013-12-03 13:08 UTC

This package is not auto-updated.

Last update: 2024-12-21 16:51:35 UTC


README

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...