uran1980 / fancybox-bundle
jQuery FancyBox Bundle for Symfony2
0.0.1
2015-03-08 12:16 UTC
Requires
- symfony/framework-bundle: >=2.1
This package is auto-updated.
Last update: 2024-09-13 04:15:01 UTC
README
当前版本
fancyBox 2.1.4
安装
将包添加到你的 composer.json 文件中
// composer.json { "require": { // ... "uran1980/fancybox-bundle": "*" } }
将包添加到你的应用程序内核
// app/AppKernel.php public function registerBundles() { $bundles = array( // ... new Uran1980\FancyBoxBundle\Uran1980FancyBoxBundle(), // ... ); }
使用 Composer 下载包
$ php composer.phar update uran1980/fancybox-bundle
安装资源
假设你的服务器公共目录名为 "web",安装公共供应商资源
$ php app/console assets:install web
可选地,使用 --symlink 属性创建资源的链接而不是复制
$ php app/console assets:install --symlink web
用法
在你的 HTML 模板中引用所需的文件,例如
<link rel="stylesheet" href="{{ asset('bundles/uran1980fancybox/js/fancybox/source/jquery.fancybox.css') }}"> <script type="text/javascript" src="{{ asset('bundles/uran1980fancybox/js/fancybox/source/jquery.fancybox.pack.js') }}"></script>
许可证
请参阅包含文件的源代码以获取许可证信息