bmatzner / jquery-mobile-bundle
此包已被弃用,不再维护。未建议替代包。
Symfony2 的 jQuery Mobile Bundle
1.4.5
2016-03-26 20:01 UTC
Requires
- bmatzner/jquery-bundle: >=1.11
- symfony/framework-bundle: >=2.1
This package is not auto-updated.
Last update: 2020-01-24 15:10:26 UTC
README
当前版本
jQuery Mobile 1.4.5
安装
将包添加到您的 composer.json 文件
// composer.json { "require": { // ... "bmatzner/jquery-mobile-bundle": "~1.4" } }
将包添加到您的应用程序内核
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Bmatzner\JQueryBundle\BmatznerJQueryBundle(), new Bmatzner\JQueryMobileBundle\BmatznerJQueryMobileBundle(), // ... ); }
使用 Composer 下载包
$ php composer.phar update bmatzner/jquery-mobile-bundle
安装资源
假设您的服务器公共目录名为 "web",安装公共供应商资源
$ php app/console assets:install web
可选地,使用 --symlink 属性创建链接而不是资源的副本
$ php app/console assets:install --symlink web
用法
在您的 HTML 模板中引用所需文件,例如
<link rel="stylesheet" type="text/css" href="{{ asset('bundles/bmatznerjquerymobile/css/jquery.mobile.min.css') }}" /> <script type="text/javascript" src="{{ asset('bundles/bmatznerjquery/js/jquery.min.js') }}"></script> <script type="text/javascript" src="{{ asset('bundles/bmatznerjquerymobile/js/jquery.mobile.min.js') }}"></script>
许可证
请参阅包含文件的源代码以获取许可证信息