bmatzner / zepto-bundle
此包已被弃用且不再维护。没有建议的替代包。
Zepto.js Bundle for Symfony2
1.1.2
2014-01-14 11:29 UTC
Requires
- symfony/framework-bundle: >=2.1
This package is not auto-updated.
Last update: 2020-01-24 14:53:00 UTC
README
当前版本
Zepto.js v1.1.2
安装
将包添加到您的 composer.json 文件中
// composer.json { "require": { // ... "bmatzner/zepto-bundle": "*" } }
将包添加到您的应用程序内核中
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Bmatzner\ZeptoBundle\BmatznerZeptoBundle(), // ... ); }
使用 Composer 下载包
$ php composer.phar update bmatzner/zepto-bundle
安装资源
假设您的服务器公共目录名为 "web",安装公共供应商资源
$ php app/console assets:install web
可选,使用 --symlink 属性创建资源的链接而不是复制
$ php app/console assets:install --symlink web
用法
在您的 HTML 模板中引用所需的文件,例如
<script type="text/javascript" src="{{ asset('bundles/bmatznerzepto/js/zepto.min.js') }}"></script>
许可证
请参阅包含文件的源代码以获取许可证信息