ner0tic/jquery-plus-bundle
Composer 安装命令:
composer require ner0tic/jquery-plus-bundle
包简介
Bundle for Symfony2 containing often used jquery plugins
README 文档
README
Current Version
- jQuery 1.8.2
- JQuery-ui 1.8.23
- Select2 3.2
- GMaps 1.0
Installation
Add bundle to your composer.json file
// composer.json { "require": { // ... "ner0tic/jquery-plus-bundle": "1.0.0" } }
Add bundle to your application kernel
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Ner0tic\JQueryPlusBundle\Ner0ticJQueryPlusBundle(), // ... ); }
Download the bundle using Composer
$ php composer.phar update ner0tic/jquery-plus-bundle
Install assets
Given your server's public directory is named "web", install the public vendor resources
$ php app/console assets:install web --symlink # drop the symlink flag to create copies instead
Usage
Twig
<script type="text/javascript" src="{{ asset('bundles/ner0ticjqueryplus/js/jquery.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/ner0ticjqueryplus/js/jquery-ui.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/ner0ticjqueryplus/js/select2.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/ner0ticjqueryplus/js/gmaps.js') }}"></script>
统计信息
- 总下载量: 24
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2012-09-29