stinger-soft / jquery-scrollto-bundle
Symfony Bundle jquery-scrollTo
v2.1.2
2016-08-10 06:43 UTC
Requires
- symfony/framework-bundle: >=2.1
This package is auto-updated.
Last update: 2024-09-07 18:50:47 UTC
README
为Symfony提供的jquery-scrollTo Bundle
当前版本
jquery-scrollTo v2.1.2 - https://github.com/flesler/jquery.scrollTo
安装
将bundle添加到你的composer.json文件中
// composer.json { "require": { // ... "stinger-soft/jquery-scrollto-bundle": "~2.1.2" } }
将bundle添加到你的应用内核中
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new StingerSoft\JQueryScrollToBundle\StingerSoftJQueryScrollToBundle(), // ... ); }
使用Composer下载bundle
$ php composer.phar update stinger-soft/jquery-scrollto-bundle
安装资源
假设你的服务器的公开目录命名为"web",安装公开的供应商资源
$ php app/console assets:install web
可选地,使用--symlink属性创建链接而不是资源的副本
$ php app/console assets:install --symlink web
用法
将css和js文件添加到需要的地方
{% javascripts 'bundles/stingersoftjqueryscrollto/js/jquery.scrollTo.min.js' %} <script src="{{ asset_url }}" ></script> {% endjavascripts %}
许可证
请参考包含文件的源代码以获取许可证信息