Skip to content

19Gerhard85/sfSelect2WidgetsPlugin

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

51 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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