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)
- symfony 1.2 / 1.3 / 1.4
- jQuery, see Select2 for the latest supported version
- Optional: Propel ORM
{
"require": {
"bgcc/sf-select2-widgets-plugin": "dev-master"
}
}
-
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
-
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
Coming soon...