bgcc/sf-select2-widgets-plugin
Composer 安装命令:
composer require bgcc/sf-select2-widgets-plugin
包简介
Select 2 Widgets for Symfony 1
README 文档
README
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
- symfony 1.2 / 1.3 / 1.4
- jQuery, see Select2 for the latest supported version
- Optional: Propel ORM
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...
统计信息
- 总下载量: 1.57k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 8
- 点击次数: 4
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: GPL-2.0
- 更新时间: 2013-10-14